Re: non-interactive sftp and 'put'



I am trying to do the same thing because scp isn't working properly
from a linux box to a windows box. big surprise! Have you had any
luck?

Mitch
mitch.saba AT uconn dot edu

On Oct 15, 10:31 am, Ens8675...@xxxxxxx wrote:
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]]]
sftp [[user@]host[:dir[/]]]

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
batch files?

Thanks,
Bo


.



Relevant Pages

  • Re: Via FTP, any way to copy a remote file to another remote directory
    ... destination server is Unix. ... with my windows server. ... SSH are available on Unix, Linux, as well as Windows. ... to login / remote execute scp / rcp scripts for remote file transfers. ...
    (comp.unix.shell)
  • Re: best way to copy from one fbsd box to another
    ... I am installing a new server and have to copy many files from old server ... I have connected a windows box to each via samba, ... I use a combination of scp and rsync. ...
    (freebsd-questions)
  • scp does not work in expect
    ... and i use open ssh for windows and expect for windows ... any way when i try to run the scp in expect nothing happend and i finish on time out ... the expect code for copy x.x file from the server to my computer ...
    (comp.security.ssh)
  • SecurityFocus Microsoft Newsletter #154
    ... MICROSOFT VULNERABILITY SUMMARY ... ISS RealSecure Server Sensor SSL Denial Of Service Vulnerabi... ... Roger Wilco Remote Server Side Buffer Overrun Vulnerability ... available for Microsoft Windows operating systems. ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #49
    ... Subject: SecurityFocus Microsoft Newsletter #49 ... Microsoft Windows NNTP Denial of Service Vulnerability ... Microsoft IIS SSI Buffer Overrun Privelege Elevation Vulnerability ... Microsoft ISA Server H.323 Memory Leak Denial of Service... ...
    (Focus-Microsoft)