1753518 Members
5378 Online
108795 Solutions
New Discussion юеВ

Re: Non Interactive sftp

 
SOLVED
Go to solution
raiden
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
James R. Ferguson
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...
Patrick Wallek
Honored Contributor

Re: Non Interactive sftp

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

Re: Non Interactive sftp

Thnkks James .. That was a good info.. Thanks Patrick
Steven E. Protter
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