FS#70116 - [openssh] Can't use SSH keys with github
Attached to Project:
Arch Linux
Opened by Fabio Mazza (fabmazz) - Sunday, 21 March 2021, 18:57 GMT
Last edited by Giancarlo Razzolini (grazzolini) - Tuesday, 06 April 2021, 13:10 GMT
Opened by Fabio Mazza (fabmazz) - Sunday, 21 March 2021, 18:57 GMT
Last edited by Giancarlo Razzolini (grazzolini) - Tuesday, 06 April 2021, 13:10 GMT
|
Details
Description:
Trying to enter host git@github.com with the version 8.5p1 of openssh hangs after login. This prevents login on SSH with other host, as the system hangs. I have downgraded openssh to 8.4p1 and it works perfectly. Additional info: * package version(s): openssh-8.5p1-1 * config and/or log files etc. * link to upstream bug report, if any Steps to reproduce: run "ssh -vvvT git@github.com" |
This task depends upon
Closed by Giancarlo Razzolini (grazzolini)
Tuesday, 06 April 2021, 13:10 GMT
Reason for closing: Not a bug
Tuesday, 06 April 2021, 13:10 GMT
Reason for closing: Not a bug
The problem appears when launching this command, but connecting to other hosts (non-git related) works fine. It is also related to my wifi network, which has two routers in cascade. I've tried disabling any sort of filtering/firewall, but it didn't solve the problem.
I've tried with another PC running fedora 33, same setup (SSH ed25519 key, same command), same wifi network, and it worked, but with version 8.4p1. That's when I tried to downgrade the package on arch linux.
I can provide more details, and try running some commands if you need me to.
Hi grazzolini! You've successfully authenticated, but GitHub does not provide shell access.
I also use an ed25519 key. Are you using ControlMaster? If so, it might be the case your connection is hung up, try using ssh -O exit. Other than that, if you also have a config file for ssh, it might helpful to paste it.
openssh 8.5p1-1
git 2.31.0-1
$ ssh -T git@github.com
Hi aminvakil! You've successfully authenticated, but GitHub does not provide shell access.
This doesn't happen with version 8.4p1.
I have a few hosts set up in my .ssh/config, but they are not related to github (just other ssh logins). I tried deleting known_hosts, but the problem is still there.
I don't know what ControlMaster is, so I very probably am not using.
I have just run a full system upgrade and the problem is still present (same versions as @aminvakli mentioned). I've pasted a full log here: https://pastebin.com/qBXP6M4k
This is what happens with openssh 8.4p1 instead https://pastebin.com/5YmPHvak
I've put the log here: https://pastebin.com/XZzAxTvH
* ssh(1), sshd(8): set the TOS/DSCP specified in the configuration
for interactive use prior to TCP connect. The connection phase of
the SSH session is time-sensitive and often explicitly interactive.
The ultimate interactive/bulk TOS/DSCP will be set after
authentication completes
So, if your router for that particular network doesn't honor or doesn't like TOS/DSCP, this might explain why 8.4p1 works.
It is as you said, probably. I tried capturing the packets with wireshark but I don't have any idea how to filter the ones relevant to the problem.