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.
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.
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
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...