Skip to content
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

SSH: can't connect to OpenSSH 9 / Ubuntu 22 #6804

Closed
Eugeny opened this issue Jul 18, 2022 · 14 comments
Closed

SSH: can't connect to OpenSSH 9 / Ubuntu 22 #6804

Eugeny opened this issue Jul 18, 2022 · 14 comments

Comments

@Eugeny
Copy link
Owner

Eugeny commented Jul 18, 2022

Tabby currently lacks support for rsa-sha2-256/512 private key auth (through node-ssh2).

OpenSSH 8 has deprecated the old ssh-rsa private key auth algorithm in 9.0 since rsa-sha2-256 offers better security with the same key, however Tabby as an SSH client doesn't support it yet.

The error shown in Tabby is All configured authentication methods failed.

As a workaround, you can reenable ssh-rsa auth on the server by adding PubkeyAcceptedAlgorithms +ssh-rsa to your /etc/ssh/sshd_config and reloading the SSH service.

@orangeSi
Copy link

orangeSi commented Jul 26, 2022

My first ssh connect is ok, but got this error when duplicate it. Then I close the whole tabby and restart it, all is ok now~
PS: my system is win10, not linux.

@Uj947nXmRqV2nRaWshKtHzTvckUUpD

This should be top priority, as it renders Tabby completely unusable for new os systems (latest centos, ubuntu).

@Eugeny Eugeny closed this as completed in 5bbb5e9 Jul 29, 2022
@mc36
Copy link

mc36 commented Jul 31, 2022

the issue is still there... :( i'm running debian sid, that is, the ssh agent is also from ssh9.0p1 right now, and it cannot connect 127.0.0.1:22.. doing ssh localhost connects fine without asking for a thing...

@cayenne17
Copy link

the issue is still there... :( i'm running debian sid, that is, the ssh agent is also from ssh9.0p1 right now, and it cannot connect 127.0.0.1:22.. doing ssh localhost connects fine without asking for a thing...

What are the connection conditions?
by password or by key?
what kind of key ?

what is the error message in the SSH server logs at the time of SSH connection in /var/log/auth.log ?

@Eugeny
Copy link
Owner Author

Eugeny commented Jul 31, 2022

@mc36 are you on v1.0.182?

@Uj947nXmRqV2nRaWshKtHzTvckUUpD

On build 182, I am able to connect to both Centos 9 and Ubuntu 22. Great work!

@Phil57
Copy link

Phil57 commented Jul 31, 2022

Had to rollback to 181, could not connect anymore.

ecdsa-sha2-nistp256

Ubuntu 20.04.4 LTS
OpenSSH 8.2p1-4ubuntu0.5

@mc36
Copy link

mc36 commented Jul 31, 2022

@mc36 are you on v1.0.182?
yesss, the build from 2 days ago...

@mc36
Copy link

mc36 commented Jul 31, 2022

What are the connection conditions?
by password or by key?
what kind of key ?

so i try to use the agent to authenticate with my key... (they came from keepassxc, if that matters, but should not)
so it's an old 2kbits rsa key... the key, and a lot more, present in ssh-add -L.. moreover, ssh 127.0.0.1 opens fine...

@Eugeny Eugeny unpinned this issue Jul 31, 2022
@Aterfax
Copy link

Aterfax commented Aug 29, 2022

X-post.

#5023 (comment)

I think something is unpatched with respect to these new builds when using the Pageant agent. If I supply the private key via the key method in the profile, I can login to endpoints.
If I tell it to use Pageant agent I cannot login with the same error as above with v182 and above.

@diego-lima
Copy link

I installed release alpha 183 yesterday (tabby-1.0.183-macos-x86_64.pkg) and I am running into this issue.

 SSH  Connecting to diegolm.corp.amazon.com
 SSH  Host key fingerprint:
 SSH   rsa-sha2-256  06/zgi0Ngu18kJEClzJDu87p+uORbKDVF2OyklIk62s= 
 SSH  Loading private key: file:///Users/diegolm/.ssh/id_rsa
 X  All configured authentication methods failed
 SSH   X  Remote rejected opening a shell channel: Error: Not connected

There's also a log on devtools stating Server does not support auth method hostbased

I will just run ssh <hostname> in a regular tab as always

@tennox
Copy link

tennox commented Nov 6, 2022

Same here
image

@Issues-translate-bot
Copy link
Collaborator

The translator bot has detected that this issue body's language is not English, and has translated it automatically.


Same here
image

@Aterfax
Copy link

Aterfax commented Nov 8, 2022

Still having this problem under Ubuntu 22.04 with Tabby 1.0.186 - is this related to issues in the ssh2 package?

mscdex/ssh2#989

Edit: FYI for people wanting a quick(ish) resolution. Just make a new ed25519 SSH key pair, update your endpoints and user accounts authorized_keys with it and Tabby should resume working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants