cancel
Showing results for 
Search instead for 
Did you mean: 

Non Interactive sftp

 
SOLVED
Go to solution
Highlighted
Regular Advisor

Non Interactive sftp

Like the option "-i" in ftp for non interactive file transfer.

ftp -i hostname

what is the similar option in sftp .
4 REPLIES 4
Highlighted
Acclaimed Contributor
Solution

Re: Non Interactive sftp

Hi:

Setup public keys. Then, if you want a pure shell script, use 'scp' or 'sftp'. In the later case, you can find an example I offered here:

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1353692

Regards!

...JRF...
Highlighted
Honored Contributor

Re: Non Interactive sftp

Also have a look at the '-b' switch of sftp for batch mode.
Highlighted
Regular Advisor

Re: Non Interactive sftp

Thnkks James .. That was a good info.. Thanks Patrick
Highlighted
Exalted Contributor

Re: Non Interactive sftp

Shalom,

scp is a better tool for non interactive.

Useful posts. Written by me.

http://www.hpux.ws/?p=10

http://www.hpux.ws/?p=19

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com