Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- non-interactive sftp and 'put'
October 15, 2007, 2:31 pm
rate this thread
I have the authentication set up and working correctly, just have a
question on how to non-interactively upload files to the server using
sftp. I can non-interactively download files using the following:
sftp [[user@]host[:file [file]]]
But there doesn't seem to be a way to put files on the server. I can
create a batch file, but that is an ugly solution. I can also use scp,
but we wanted to limit the user to their home directory on the ssh
server. The Windows ssh server we are using does not restrict (other
than file/directory permissions) the user to a certain directory when
using scp, but it does restrict the user when using sftp.
It looks like we may just have to lock down the entire directory
structure on the ssh server so that the user isn't allowed to navigate
anywhere in the filesystem (which will probably be done anyway).
Any way to perform a non-interactive 'put' operation without using
- » Password-less login from LAN, but not from public IP ??
- — Previous thread in » Secure Shell Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum