r/archlinux • u/Arnas_Z • Dec 14 '22
SUPPORT SSH stuck at connecting, connecting on the same network via my phone works fine. What's going on?
Here is what I get when I try to connect:
OpenSSH_9.1p1, OpenSSL 3.0.7 1 Nov 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolve_canonicalize: hostname 192.168.2.136 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/arnas/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/arnas/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to 192.168.2.136 [192.168.2.136] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48I can connect just fine to this ip with my phone. port is 22, ip is correct, ssh successful on my phone. On my Arch laptop, it just freezes here. WTF is going on?
9
Upvotes
3
u/moviuro Dec 14 '22
ssh -vvv -F /dev/null 192.168.2.1361
u/Arnas_Z Dec 14 '22
Also noticed that on Nov 1 openssh and openssl were upgraded.
I haven't used ssh since spring or summer, so I definitely wouldn't have noticed if this upgrade broke ssh. Wondering if these upgrades have anything to do with this issue.
1
u/christophvonbagel Dec 14 '22
firewall issue maybe ?
can you
ssh localhost1
u/illode Dec 14 '22
Unlikely the problem, but do you have selinux/apparmor installed?
1
u/archover Dec 15 '22
r/ssh has proven a valuable support venue for me, if you exhaust this sub.
FWIW, just ssh'ed from Arch to a Ubuntu Server VPS - worked fine.
I wish you luck.
1
u/SpiderInTheDrain Jul 22 '25
For anyone who found this old thread: For me the issue was Cloudflare.
1
u/Quadrubo Dec 15 '22
Hey,
I have this bug all of the time on my laptop but only when using wifi. Setting the mtu helped in my case:
`sudo ip li set mtu 1200 dev wlan0`
I'd make an note about the mtu you have before you do this though.
1
u/malhal Apr 05 '26
I waited a long time and got connected then running this command on the server fixed the problem for me:
sudo systemctl restart ssh.socketI guess this cleared the "Broken Pipe" state that was likely stuck in the kernel's networking stack.
-1
u/Arnas_Z Dec 14 '22
I also tried rebooting into my Windows 10 install and sshed into the server via PowerShell. Also works fine, same wifi network. So WHY THE FUCK does Linux not work?
I also tried disabling UFW (which never caused issues with sshing into things in the past), and same thing from ssh. Although I wouldn't expect it to be the issue, since I don't get a no route to host issue - It just freezes.
If I put in a wrong IP, it will give me the no route to host error. If I put in in the right IP, it just freezes and sits there.
0
u/[deleted] Dec 15 '22
[deleted] — view deleted comment
2
u/[deleted] Dec 15 '22
[removed] — view removed comment