NyQuest logo
HomeBanner 7 FAQTips & Tricksnavtab
menubar
Setting Up Passthru SSH

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 dsa -f $HOME/.ssh/id_dsa -P ''
This should result in two files, $HOME/.ssh/id_dsa and $HOME/.ssh/id_dsa.pub. The former
file is the private encryption key and the latter is the public key.

Copy the public key id_dsa.pub to the server (Box B) and append it's contents to
$HOME/.ssh/authorized_keys as testuser.
$ cat id_dsa.pub >> $HOME/.ssh/authorized_keys
$ chmod 0600 $HOME/.ssh/authorized_keys
At this point you should be all set. All ssh commands should allow Passthru connections
from Box A to Box B as testuser.


The contents of www.nyquest.com are Copyright © 2007 by Nyquest Consulting.
Sungard® and Banner® are registered trademarks of Sungard® Corporation.
Nyquest is not affiliated in any way with Sungard®.
All Rights Reserved.