1834305 Members
2015 Online
110066 Solutions
New Discussion

Re: .netrc script

 
Raymond Ford
Advisor

.netrc script

Would like to write a script that will sftp a file from one server to another. Wondered if anyone had ideas on how to accomplish this transfer.
I'm an apprentice among journeymen who spend a lot of time on the virtual road.
2 REPLIES 2
Geoff Wild
Honored Contributor

Re: .netrc script

sftp doesn't use .netrc files....

Only way to automate would be to use something like expect:

http://hpux.ee.ualberta.ca/hppd/hpux/Tcl/expect-5.41/

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
G. Vrijhoeven
Honored Contributor

Re: .netrc script

Hi,

You can use public/private keys for that.

Check this link:

http://www.edoceo.com/liberum/ssh-automatic-login.php

HTH,

Gideon