|
|
Question : Problem: Want to copy linux files using scp without entering password each time
|
|
Experts:
I am trying to copy files to a server out on the Internet without having to type in a password everytime. I am going from a local linux (fedora 6) box to another linux box (Cent 4). My command is:
scp /home/tayloe/filename [email protected]:/home/tayloe
It works, but it makes me enter a password each time. I generated a key pair on the local box (using ssh-keygen -t rsa) and copied the contents of the resulting id_rsa.pub file to a file called authorized_keys on the remote box. The authorized keys file is in the following 2 directories on the remote box:
/home/tayloe /home/tayloe/.ssh
I wasn't sure which directory it should be in, so I put it in both. That procedure is supposed to make it so it stops asking for a password each time, but it still does.
Help!!
Tnic
|
Answer : Problem: Want to copy linux files using scp without entering password each time
|
|
Make sure perms on your .ssh directory are 700
|
|
|