(related: Ubuntu 22.04 SSH the RSA key isn't working since upgrading from 20.04 / SSH and Telnet timing out. Ubuntu 22.04 lts but the solution provided doesn't work)
ssh works from home. I can ssh to my laboratory, push to github.com+ssh, etc...
Nevertheless, I installed XUbuntu-22.04 on a new computer and ssh doesn't work for this machine.
After reading Ubuntu 22.04 SSH the RSA key isn't working since upgrading from 20.04 , I added
HostKeyAlgorithms +ssh-rsa and
PubkeyAcceptedKeyTypes +ssh-rsa to
/etc/ssh/sshd_config , restarted ssh
sudo systemctl restart sshd.service but it still doesn't work (see below).
I don't know much things about ssh so I have no clear idea of what I'm doing.
Here are a few outputs:
$ openssl version
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
$ cat .ssh/config
$ tail /etc/ssh/sshd_config
$ sudo systemctl restart sshd.service
ssh -vvvv -X [email protected]
OpenSSH_8.9p1 Ubuntu-3, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /home/me/.ssh/config
debug1: /home/me/.ssh/config line 8: Applying options for my.host
debug3: kex names ok: [diffie-hellman-group14-sha1]
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/me/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/me/.ssh/known_hosts2'
debug2: resolving "my.host" port 22
debug3: resolve_host: lookup my.host:22
debug3: ssh_connect_direct: entering
debug1: Connecting to my.host [IP] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10
debug1: connect to address IP port 22: Connection timed out
ssh: connect to host my.host port 22: Connection timed out
what am I missing ?
I also tried too add the values in sshd_config + ssh_config.
Telnet doesn't work too.
$ telnet my.host 22
telnet: Unable to connect to remote host: Connection timed out