ADSM-L

Re: [ADSM-L] Need info on how to SCP on AIX without being prompted for password

2010-06-25 18:32:53
Subject: Re: [ADSM-L] Need info on how to SCP on AIX without being prompted for password
From: James Choate <jchoate AT CHOOSES1 DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Fri, 25 Jun 2010 16:29:05 -0600
Jim,
You are almost there.
Once you run ssh-keygen you should have created a public/private keypair in 
your .ssh directory.  If you cd to ~/.ssh you should see an id_rsa and 
id_rsa.pub.  Your next step should be to scp your id_rsa.pub to the server you 
want to scp in the future (you will be prompted for a password) .... the next 
step is to cat the id_rsa.pub file that you just scp'd into that hosts 
authorized_keys file ....
 #cat /tmp/id_rsa.pub >> /home/<user>/.ssh/authorized_keys
This step will put the public key in the authorized keys for this host.

Next verify your process worked by running your scp command again from the 
originating host.  You should not be prompted for a password.


-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of 
Jim Neal
Sent: Friday, June 25, 2010 3:50 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Need info on how to SCP on AIX without being prompted for password
Importance: High

Hi All,

        I am running TSM 5.5.4 on AIX 5.3.7.  I am trying to use 'ssh-keygen
-t rsa' to create a public/private keypair so that I can create a script
that will automatically scp specific files to a remote site.  Obviously, I
do not wish to send the password in the clear, nor do I wish to incorporate
the password into the script itself.

        I created the key pair on the server I want to send the file from
and then copied the public key to the /home/(accountname)/.ssh directory of
the account I am using on the destination server but I am still getting
prompted for the password when using scp.

        The command I am using is:

scp -i identity_file file-to-be-copied
user@destination_server:/destinatation_directory


        Any help or alternative solutions that anyone can provide will be
immensely appreciated!  Thanks much!


Jim Neal
Sr. TSM Admin
UC Berkeley Storage and Backup Group
jrneal AT berkeley DOT edu