9.5.1 Basics of SSH
First install the OpenSSH server and client.
# apt-get update && apt-get install ssh
/etc/ssh/sshd_not_to_be_run
must not be present if one wishes to
run the OpenSSH server.
SSH has two authentication protocols:
Be careful about these differences if you are migrating to Woody or using a
non-Debian system.
See /usr/share/doc/ssh/README.Debian.gz
, ssh(1)
,
sshd(8)
, ssh-agent(1)
, and ssh-keygen(1)
for details.
Following are the key configuration files:
The following will start an ssh
connection from a client.
$ ssh [email protected]
$ ssh -1 [email protected] # Force SSH version 1
$ ssh -1 -o RSAAuthentication=no -l username foo.host
# force password on SSH1
$ ssh -o PreferredAuthentications=password -l username foo.host
# force password on SSH2
For the user, ssh
functions as a smarter and more secure
telnet
(will not bomb with ^]).