Take a look at
man ssh-keygen.
You'll need to generate a public key without a passphrase (just hit the return key when prompted) and copy that to the home directory's
.ssh/authorized_keys file on the remote machines. When you
ssh server, you won't be asked for a password.
Also, in the
.ssh directory (on your controlling machine) create a file
config with content like this for every machine you
ssh to:
Code:
Host remote-host-name
ForwardX11 yes
Compression yes
Protocol 2,1
User remote-user-name
It would be useful to enter the remote host name(s) is
/etc/hosts while you're at it.
When you execute
ssh-keygen on a machine, two files will be created in the
.ssh directory:
id_dsa and
id_dsa.pub. The
id_dsa file is the private key, the
id_dsa.pub file is the public key (the one that gets copied to a remote machine). Once done, login is not required.
Note, however, that the first time you connect to any machine with
ssh you will be prompted to add an entry in
known_hosts for the machine you're connecting to (no convenient way around that one).
Again, see
man ssh-keygen.