automate SFTP

mouring at etoh.eviladmin.org mouring at etoh.eviladmin.org
Sat Jan 12 12:36:23 EST 2002


Depends on the direction.

sftp user at site:/path/to/file.tgz works very nicely.

for put you should do like:

echo "put file /path/to/lcation/filename.tgz" | sftp user at site

You can use SSH keys as your form of authenitication.


- Ben

On Sat, 12 Jan 2002 chuayl at 1-net.com.sg wrote:

>
>
> Is there anyway to automate a command line SFTP to transfer files to a SSH
> Server.
>
> Please advice. Thanks
>
>
> _______________________________________________
> openssh-unix-dev at mindrot.org mailing list
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
>




More information about the openssh-unix-dev mailing list