For trusted systems it is often useful to enable Passthru SSH between the
various servers. What this means is that users will be able to perform ssh
and all related operations such as scp between these servers without having
supply a password each time for a specific user defined on both systems.
To get this working follow the steps below:
For this example, we will setup a Passthu SSH connection from Box A to Box B as user testuser.
Thus Box A
is the ssh client while Box B is the ssh server.
On the client (Box A) run the following command as testuser:
$ ssh-keygen -t rsa -f $HOME/.ssh/id_rsa -P ''This should result in two files, $HOME/.ssh/id_rsa and $HOME/.ssh/id_rsa.pub. The former
$ cat id_rsa.pub >> $HOME/.ssh/authorized_keys $ chmod 0600 $HOME/.ssh/authorized_keysAt this point you should be all set. All ssh commands should allow Passthru connections