0
I'm trying to upload a file to a mapped drive (D:) on a remote server using sftp. I can RDP into that remote Windows 2012 server and see the D: drive in Explorer. In a command shell I can also see it:
C:\cygwin\etc>mount
C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto)
Also, if I cd to that drive from the RDP command shell and then do a pwd, it shows what I expect.
D:\>pwd
/cygdrive/d
But when I sftp to it from my local Windows 10 laptop, I can't cd to the D drive.
sftp> cd /cygdrive/d
Couldn't stat remote file: No such file or directory
I'm logged in with sftp using same credentials as RDP.
Suggestions?
https://cygwin.com/faq/faq.html#faq.using.shares – matzeri – 2018-09-18T20:39:40.450
What sftp server software are you using? – user1686 – 2018-09-18T20:52:22.643
@grawity: whatever comes with cygwin. Installed within 1 year. – tekknow – 2018-09-18T21:06:01.310
/cygdrive/d doesn't show up in WinSCP either. Only /cygdrive/c shows up. – tekknow – 2018-09-18T21:12:30.763
@matzeri: "This problem as well as its solution is described in detail in the Cygwin User's Guide". Good luck finding it. – tekknow – 2018-09-18T21:14:34.830
bottom of the link.
Switching the user context
– matzeri – 2018-09-18T21:24:42.253Why should I have to switch user context? I'm using the same credentials that created the mapped network drive as the ones trying to access it. I don't understand that, much less the gobbledygook that somehow explains how to do it. – tekknow – 2018-09-18T22:30:36.227