Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

set up scp without password

807557Jan 22 2009 — edited Aug 11 2010
Hi,
we have a requirement to scp file to a LINUX machine from our Solaris 9 server. So far, I did

$ ssh-keygen -t dsa
Enter file in which to save the key(/export/home/user/.ssh/id_rsa):
Generating public/private rsa key pair.
Enter passphrase(empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /export/home/user/.ssh/id_rsa.
Your public key has been saved in /export/home/user/.ssh/id_rsa.pub.
The key fingerprint is:
md5 1024 56:0b:aa:4a:43:ee:e4:79:54:a3:2a:5d:06:20:d0:8d user@server

$ ls -ltrh .ssh/
total 14
-rwx------ 1 user oinstall 235 Feb 28 2007 authorized_keys
-rwx------ 1 user oinstall 1.7K Jan 22 17:17 known_hosts
-rw-r--r-- 1 user oinstall 224 Jan 23 12:55 id_rsa.pub
-rw------- 1 user oinstall 887 Jan 23 12:55 id_rsa
-rw-r--r-- 1 user oinstall 604 Jan 23 13:36 id_dsa.pub
-rw------- 1 user oinstall 668 Jan 23 13:36 id_dsa

$ ssh-copy-id -i ~/.ssh/id_dsa.pub user@labt88fms
ksh: ssh-copy-id: not found

$ ssh user@labt88fms
user@labt88fms password:

I am still being asked for a password. Once I enter the pwd I do ls on the remote box and see

id_rsa.pub

Can someone please advise how can I get the scp to work so that I do not get asked for a password via shell script. thank you
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2010
Added on Jan 22 2009
4 comments
782 views