-
Notifications
You must be signed in to change notification settings - Fork 65
2FA / ssh tunnel #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've managed to get one step further using ssh-tunnel port forwarding:
|
I got it working. Here's how for anyone having the same issue:
Establish an ssh-tunnel via
Create a separate ssh config file for vscodium and point the extension to it containing:
Connect. Be happy. |
keyboard interactive is not implemented yet, I left it as a TODO as I've never use it before 😄, but I think it should be straightforward to do it here |
I have sadly zero experience with JS so I won't be able to give it a shot. |
@gothicVI released |
@jeanp413 after updating to v0.0.11, and patching a small bug in ssh2, keyboard-interactive 2FA is working perfectly for me! This patch was necessary because the partial success response was ignored when using agent authentication. |
Good catch @lucasvbeek hope it gets merged 🤞 if not I think I'd look into forking the library and cherry-pick you PR 👍 |
@jeanp413 sorry for the late reply. I haven't found the time to test yet and with the missing fix to ssh2 I'll wait for a bit until I will. |
@jeanp413 I've tried [Info - 07:08:18.156] Resolving ssh remote authority 'ssh-remote+HOST' (attemp #1)
[Trace - 07:08:18.170] Identity keys:
/home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY
[Info - 07:08:18.208] Trying no-auth authentication
[Info - 07:08:18.225] Trying publickey authentication: /home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY
[Error - 07:08:18.248] Error resolving authority
Error: All configured authentication methods failed
at _e (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:140273)
at t.RemoteSSHResolver.sshAuthHandler (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:380356)
at authHandler (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:374226)
at ye (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:143146)
at me (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:143330)
at USERAUTH_FAILURE (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:132306)
at 51 (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:283338)
at e.exports.x (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:153888)
at x.decrypt (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:246923)
at e.exports.D [as _parse] (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:153412)
at e.exports.parse (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:157215)
at Socket.<anonymous> (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:139013)
at Socket.emit (node:events:526:28)
at Socket.emit (node:domain:475:12)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Readable.push (node:internal/streams/readable:228:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) where the config entry is Host HOST
HostName FQDN
User XXX
Port 22
ForwardAgent yes
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly yes
PreferredAuthentications publickey,keyboard-interactive which requires 2FA. Is this due to the bug mentioned by @lucasvbeek? |
yeah I'll fork the library and cherry-pick his commit as it's really small and not sure when it's gonna be merged upstream |
Me again ;)
Any chance to get 2FA via an interactive authentication working?
I even copied the
.vscodium-server
directory to the remote but when trying to connect I'm only getting:As far as I can see in that file, keyboard interactive should in principle exist though it never seems to be called.
The host requires a PW and a interactive 2FA. Another host that also fails requires an identity key and a interactive 2FA.
Is there any more information I could provide?
The text was updated successfully, but these errors were encountered: