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

OTP pass + user pass #207

Open nitsan57 opened 4 years ago

nitsan57 commented 4 years ago

Hi, In order to connect to my university account I need to use two passes. In the terminal it works, but when I try connecting with sshfs I get only otp prompt and then after some waiting it fails with error: Error while connecting to SSH FS huji: Received exit code 255 while establishing SFTP session Thanks you guys!

SchoofsKelvin commented 4 years ago

Do you perhaps know what software/setup is used to provide this 2FA for SSH? I'll try replicating it.

In the meantime, if your university's server supports key-based authentication, I suggest that. You can even use an agent (PuTTY on Windows, plenty of choice for linux) so you don't have to keep an unencrypted private key around, nor having to enter your key's passphrase every time you try to connect with it.