scp file to another server without asking for password

hi

I tried reading some of the threads w.r.t scp/sftp file to another server in the same network without asking for password while copying files.....but couldnot succeed.

i have generated the public key for the system using "ssh-keygen -t " and kept it in the
.ssh/authorized_keys file.

even then it asked for password when i use scp

Any other way?

There might be some spaces while you tried to copy the public key to authorized_keys file.

hi

No additional spaces ...
some how its not working ...restarted the ssh as well

If you fix ssh connection without a password, the scp will work a well.
try this tutorial: http://www.ehow.com/how_4750765_rsync-over-ssh-password.html
and make sure your authorized_keys file has permissions of 600 when your done, or it wont work.

also - is the ssh server yours? sometime password less access is disabled in the sshd.conf.

Another good debugging option is to use "ssh -v into_the_server"

and you will see a lot of valuable info about the ssh process and where its failing.

Yonit
Linux Server Tips

hi

i followed the steps as mentioned in the article. but still its not successful
am getting error as:

It looks like you are using kerberos for authentication. Is there a line like

GSSAPIAuthentication yes

in your sshd configuration file?

no....

followed the instructions in the link

and added the following in the sshd_config file...
changed the value of "PermitEmptyPasswords no "
to
"PermitEmptyPasswords yes"
and restarted the ssh

GSSAPIAuthentication=no
GSSAPIKeyExchange=no
StrictHostKeyChecking no
GSSAPIAuthentication=no
GSSAPIKeyExchange=no

now am getting the error as

i have modified both the server files (sshd_config)
and both have public key of other servers in its authorized_keys2

Help me out!!!!

hi

i tried using ftp as well as per the mthod suggested in the thread...

I have created a file named .netrc under the root directory
with the following data in it

machine 10.1.1.0
login root
password 123456

and created a script file which contains

host=10.1.1.0

/usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp
open $host
bin
cd /aemu/combined/
put /space/canvas/home/lbs/current/internalcdrbackup/LES_CDR_Configuration/0/MSISDNcdrCount.txt 
quit
ftp

when i execute the script am getting the following error

some one please help me out as am struggling with this for more than two days...otherwise suggest me how to go about with scp which i tried already

thanks

hi all

i am successful in transferring files without asking for password...
i just removed whatever i played with in all servers...and started afresh this time and this time i used cat file >> file1 method for appending the public key...

it became ok

thanks for all who has given their input..