Sftp transfer by using put command in winscp automation failed from sftp restricted shell

Advertisement

Muhsin
Guest

Sftp transfer by using put command in winscp automation failed from sftp restricted shell

I m trying to transfer files from Linux to Windows by using scheduler in windows.
there is dedicated linux user and user restricted SSH shell and enable sftp shell only (used this article to set sftp shell https://www.digitalocean.com/community/tutorials/how-to-enable-sftp-without-shell-access-on-ubuntu-16-04). Used ssh (priv/pub ley) for authentication. but while running bat automation file error saying No such a file for directory. but if we try via Winscp gui, remote directory is listing and files are transferring .

please see screenshot

Screenshot from 2020-07-10 14-44-10.png

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,468
Location:
Prague, Czechia

Re: Sftp transfer by using put command in winscp automation failed from sftp restricted shell

If you chroot to /var/ftp, you should see (even in GUI) the upload subfolder as /upload, not as /var/ftp/upload. Don't you?

If this does not help, please post logs files from both the script and the GUI.

Reply with quote

Advertisement

You can post new topics in this forum