You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed this on my local machine and then SSH'd into it. I initialized the SFTP subsystem and then tried to get the canonicalized absolute pathname for the current working directory (.) by sending a SSH_FXP_REALPATH packet. I got C:/Users/My Username back. This path is malformed per the SFTP specs. Quoting http://tools.ietf.org/html/draft-ietf-secsh-filexfer-02#section-6.2 ,
This protocol represents file names as strings. File names are
assumed to use the slash ('/') character as a directory separator.
File names starting with a slash are "absolute", and are relative to
the root of the file system. Names starting with any other character
are relative to the user's default directory (home directory). Note
that identifying the user is assumed to take place outside of this
protocol.
C:/Users/My Username does not start with a slash and so it is not, per the SFTP specs, absolute to the root of the file system.
Among other problems this causes is that WinSCP can't open up any subdirectory in the C:/Users/My Username directory.
Fixed to meet SFTP spec by having all paths start with a slash '/'. Win32 sftp-server now sends paths with a slash at the start. /C:/Users/John will be transmitted as the path to sftp clients when a typical user John directory is at C:/Users/John .
I installed this on my local machine and then SSH'd into it. I initialized the SFTP subsystem and then tried to get the canonicalized absolute pathname for the current working directory (.) by sending a SSH_FXP_REALPATH packet. I got
C:/Users/My Username
back. This path is malformed per the SFTP specs. Quoting http://tools.ietf.org/html/draft-ietf-secsh-filexfer-02#section-6.2 ,C:/Users/My Username
does not start with a slash and so it is not, per the SFTP specs, absolute to the root of the file system.Among other problems this causes is that WinSCP can't open up any subdirectory in the
C:/Users/My Username
directory.Here's a copy of the SFTP logs:
Maybe what ya'll could do is return something like
/C/Users/My Username
or something.The text was updated successfully, but these errors were encountered: