Home » Infrastructure » Unix » scp file without password
icon5.gif  scp file without password [message #244991] Thu, 14 June 2007 16:29 Go to next message
tomstone_98
Messages: 44
Registered: May 2007
Location: Atlanta
Member
Having a problem using scp file without password. I have read and followed much of the advice (like in http://www.linuxjournal.com/article/8600), but I am still having problems.

BoxA -- an IBM AIX box
BoxB -- a Linux box

I ran
ssh-keygen -t rsa

on BoxA under UserA account

I copied the id_rsa.pub file from BoxA to BoxB (i.e. copied the file from /home/UserA/.ssh/id_rsa.pub on BoxA to the /home/UserB/.ssh/authorized_keys file on BoxB).

I then tried the scp command on BoxA under the UserA account ...

scp file.txt  UserB@BoxB:/tmp


but I still get prompted for the UserB password.

Any suggestions?

Thanks.

Re: scp file without password [message #244992 is a reply to message #244991] Thu, 14 June 2007 16:44 Go to previous messageGo to next message
BlackSwan
Messages: 25046
Registered: January 2009
Location: SoCal
Senior Member
It appears you are unwilling or incapable of searching before posting.
http://www.orafaq.com/forum/m/232200/74940/?srch=scp#msg_232200

If what you posted (as opposed to actual CUT & PASTE) is to be believed, then it appears you copied to the wrong file name.

I think the correct filename is: authorized_keys2

HTH & YMMV

[Updated on: Thu, 14 June 2007 16:45] by Moderator

Report message to a moderator

Re: scp file without password [message #245215 is a reply to message #244992] Fri, 15 June 2007 08:43 Go to previous message
tomstone_98
Messages: 44
Registered: May 2007
Location: Atlanta
Member
Yup ... that worked ...

thanks for helping an unwilling and incapable bafoon Smile
Previous Topic: Unix command help
Next Topic: how will upgradation on solaris(version=8) to Solaris (Version=10)
Goto Forum:
  


Current Time: Thu Dec 08 02:07:39 CST 2016

Total time taken to generate the page: 0.13478 seconds