hi heres my sugestion (try "hard way" below since its more reliable & secure)
lets say from server1, file1, user1 going to server2, file2, user2 and you can login to both. easy way (note: possible security hole in server2) (depends on host names, ip address you put, etc) (depends if host based auth is allowed by sysad, etc) ------- put following in .rhosts or .shosts file in server2 at user2's home dir: server1 user1 ------- hard way (but more secure) (server1 can be anywhere as long as it holds private key) ------- 1. as user1, generate keys on server1: ssh-keygen -t rsa this should create ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub 2. APPEND (or copy) ~/.ssh/id_rsa.pub line to server2's ~/.ssh/authorized_keys on user2's home dir 3. PROTECT ~/.ssh/id_rsa !!!! apply all strict permission rules. (this is your private key) if you do this correctly: NO PASSWORDS NEEDED!!! (you can put "scp file1 server2:file1" or whatever on your shellscript withouht worrying about passwords) pls adjust accordingly above, i'm working mostly from memory and random notes..I'm sure it worked on my systems. GOOD LUCK JondZ > > Does any one have the instruction on how to auto upload file on linux using > sftp? > > ty > > _ > Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph > To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] > > Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph > > To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL > PROTECTED] > _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
