SchoofsKelvin / vscode-sshfs

Extension for Visual Studio Code: File system provider using SSH
GNU General Public License v3.0
546 stars 36 forks source link

Unable to authenticate via Pageant agent when auto-login and system username are different #332

Open zhurin opened 2 years ago

zhurin commented 2 years ago

A working PuTTY session fails to log in when starting a terminal via SSH FS. The auto-login username, if different from the system username, seems to be ignored when "Use system username" is set in PuTTY session configuration.

Info

OS: Windows 10 64-bit SSH FS version: 1.24.1 Pageant version: 0.76 64-bit

Steps to reproduce

  1. Create a typical SSH FS session with the PuTTY field set to the appropriate session name
  2. In PuTTY, set Connection > Data > Auto-login username to the appropriate username for the remote system (note: this username must be different than the client system username)
  3. In PuTTY, set Connection > Data > When username is not specified to "Use system username"

Observed behavior

Error: "Couldn't start a terminal for session name: All configured authentication methods failed"

Expected behavior

SSH terminal started.

Workaround

In PuTTY, set Connection > Data > When username is not specified to "Prompt" and SSH FS logs in as expected using the auto-login username.