[Bug 2029351] Re: Fail to connect to github.com with SSH
Seth Arnold
2029351 at bugs.launchpad.net
Thu Aug 3 17:36:13 UTC 2023
Hi Julien, that's awesome, thanks for reporting back!
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/2029351
Title:
Fail to connect to github.com with SSH
Status in openssh package in Ubuntu:
Invalid
Bug description:
Hello,
I experience a strange failure on Ubuntu 22.04 when connecting to
github.com through SSH.
-------------------------------------------------------------------------------------------
What am I trying to do?
?> ssh -T github.com
-------------------------------------------------------------------------------------------
What was I expecting and what did I get?
I was expecting a successful connection but it times out
-------------------------------------------------------------------------------------------
What is my ssh config?
Host github.com
Hostname ssh.github.com
Port 443
User git
IdentityFile ~/.ssh/private-repos at github.com
-------------------------------------------------------------------------------------------
What is my ssh version?
> ssh -V
OpenSSH_8.9p1 Ubuntu-3ubuntu0.3, OpenSSL 3.0.2 15 Mar 2022
-------------------------------------------------------------------------------------------
What does ssh say?
> ssh -vvv -T github.com
OpenSSH_8.9p1 Ubuntu-3ubuntu0.3, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /home/rostskadat/.ssh/config
debug1: /home/rostskadat/.ssh/config line 64: Applying options for github.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/rostskadat/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/rostskadat/.ssh/known_hosts2'
debug2: resolving "ssh.github.com" port 443
debug3: resolve_host: lookup ssh.github.com:443
debug3: ssh_connect_direct: entering
debug1: Connecting to ssh.github.com [140.82.121.35] port 443.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10
debug1: connect to address 140.82.121.35 port 443: Connection timed out
ssh: connect to host ssh.github.com port 443: Connection timed out
-------------------------------------------------------------------------------------------
What is my ssh config?
> ssh -G github.com | sort -u
addkeystoagent false
addressfamily any
batchmode no
canonicaldomains none
canonicalizefallbacklocal yes
canonicalizehostname false
canonicalizemaxdots 1
canonicalizePermittedcnames none
casignaturealgorithms ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519 at openssh.com,sk-ecdsa-sha2-nistp256 at openssh.com,rsa-sha2-512,rsa-sha2-256
checkhostip no
ciphers chacha20-poly1305 at openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm at openssh.com,aes256-gcm at openssh.com
clearallforwardings no
compression no
connectionattempts 1
connecttimeout none
controlmaster false
controlpersist no
enablesshkeysign no
escapechar ~
exitonforwardfailure no
fingerprinthash SHA256
forkafterauthentication no
forwardagent no
forwardx11 no
forwardx11timeout 1200
forwardx11trusted yes
gatewayports no
globalknownhostsfile /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2
gssapiauthentication yes
gssapidelegatecredentials no
gssapikexalgorithms gss-group14-sha256-,gss-group16-sha512-,gss-nistp256-sha256-,gss-curve25519-sha256-,gss-group14-sha1-,gss-gex-sha1-
gssapikeyexchange no
gssapirenewalforcesrekey no
gssapitrustdns no
hashknownhosts yes
hostbasedacceptedalgorithms ssh-ed25519-cert-v01 at openssh.com,ecdsa-sha2-nistp256-cert-v01 at openssh.com,ecdsa-sha2-nistp384-cert-v01 at openssh.com,ecdsa-sha2-nistp521-cert-v01 at openssh.com,sk-ssh-ed25519-cert-v01 at openssh.com,sk-ecdsa-sha2-nistp256-cert-v01 at openssh.com,rsa-sha2-512-cert-v01 at openssh.com,rsa-sha2-256-cert-v01 at openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519 at openssh.com,sk-ecdsa-sha2-nistp256 at openssh.com,rsa-sha2-512,rsa-sha2-256
hostbasedauthentication no
hostkeyalgorithms ssh-ed25519-cert-v01 at openssh.com,ecdsa-sha2-nistp256-cert-v01 at openssh.com,ecdsa-sha2-nistp384-cert-v01 at openssh.com,ecdsa-sha2-nistp521-cert-v01 at openssh.com,sk-ssh-ed25519-cert-v01 at openssh.com,sk-ecdsa-sha2-nistp256-cert-v01 at openssh.com,rsa-sha2-512-cert-v01 at openssh.com,rsa-sha2-256-cert-v01 at openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519 at openssh.com,sk-ecdsa-sha2-nistp256 at openssh.com,rsa-sha2-512,rsa-sha2-256
hostname ssh.github.com
identitiesonly no
identityfile ~/.ssh/private-repos at github.com
ipqos lowdelay throughput
kbdinteractiveauthentication yes
kexalgorithms curve25519-sha256,curve25519-sha256 at libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,sntrup761x25519-sha512 at openssh.com,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256
loglevel INFO
logverbose none
macs umac-64-etm at openssh.com,umac-128-etm at openssh.com,hmac-sha2-256-etm at openssh.com,hmac-sha2-512-etm at openssh.com,hmac-sha1-etm at openssh.com,umac-64 at openssh.com,umac-128 at openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
nohostauthenticationforlocalhost no
numberofpasswordprompts 3
passwordauthentication yes
permitlocalcommand no
permitremoteopen any
port 443
proxyusefdpass no
pubkeyacceptedalgorithms ssh-ed25519-cert-v01 at openssh.com,ecdsa-sha2-nistp256-cert-v01 at openssh.com,ecdsa-sha2-nistp384-cert-v01 at openssh.com,ecdsa-sha2-nistp521-cert-v01 at openssh.com,sk-ssh-ed25519-cert-v01 at openssh.com,sk-ecdsa-sha2-nistp256-cert-v01 at openssh.com,rsa-sha2-512-cert-v01 at openssh.com,rsa-sha2-256-cert-v01 at openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519 at openssh.com,sk-ecdsa-sha2-nistp256 at openssh.com,rsa-sha2-512,rsa-sha2-256
pubkeyauthentication true
rekeylimit 0 0
requesttty auto
securitykeyprovider internal
sendenv LANG
sendenv LC_*
serveralivecountmax 3
serveraliveinterval 0
sessiontype default
stdinnull no
streamlocalbindmask 0177
streamlocalbindunlink no
stricthostkeychecking ask
syslogfacility USER
tcpkeepalive yes
tunneldevice any:any
tunnel false
updatehostkeys true
user git
userknownhostsfile /home/rostskadat/.ssh/known_hosts /home/rostskadat/.ssh/known_hosts2
verifyhostkeydns false
visualhostkey no
xauthlocation /usr/bin/xauth
-------------------------------------------------------------------------------------------
Since when the bug occurs?
It works on WSL Ubuntu 20.04:
> cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
> ssh -V
OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f 31 Mar 2020
> ssh -T github.com
Hi rostskadat! You've successfully authenticated, but GitHub does not provide shell access.
It also works on windows:
> ssh -V
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
> ssh -T github.com
Hi rostskadat! You've successfully authenticated, but GitHub does not provide shell access.
-------------------------------------------------------------------------------------------
What can I do to help?
/Julien
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ssh (not installed)
ProcVersionSignature: Ubuntu 5.15.0-78.85-generic 5.15.99
Uname: Linux 5.15.0-78-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: GNOME
Date: Wed Aug 2 11:03:44 2023
InstallationDate: Installed on 2020-03-07 (1242 days ago)
InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: openssh
UpgradeStatus: Upgraded to jammy on 2022-11-21 (253 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2029351/+subscriptions
More information about the foundations-bugs
mailing list