Re: Error getting name of current remote directory when trying to get files using c#
Yes the SFTP is preferred over SCP.
If possible use SFTP protocol, not SCP.
If you need to use SCP protocol, you can try to workaround the problem using:
so.AddRawSettings("LookupUserGroups2", "1");
See
https://winscp.net/eng/docs/rawsettings
https://winscp.net/eng/docs/ui_login_scp#other_options
so.AddRawSettings("LookupUserGroups2", "1");