• Post Reply Bookmark Topic Watch Topic
  • New Topic

sftp connection in scripts without prompting for password  RSS feed

 
Mohan Ganesan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
My objective is, through a script In need to connect to sftp server and get some file in to my local without prompting password. How can I write a scripts to connect to sftp without asking/prompting for password (ie) i can provide password in scripts itself? Please let me know your suggestions.

Thanks.
Mohan.
 
Pat Farrell
Rancher
Posts: 4686
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use ssh to setup a .ssh directory for you. Put the public keys on both servers and you are done. Check out the man pages for ssh
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!