Can't ssh into rPI4 on arch, but I can on Ubuntu
Hello, the title basically says it all. I been trying all different things all day to ssh into my rPI4 from my arch machine, but the connection keeps timing out. On Ubuntu, it is able to ssh into the rPI4 without a problem. The rPI4 has openssh server and is working fine for any other pc but arch. Anything I can do? All devices are on wifi 5ghz band
Edited 16 Apr 2021. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 0 · 43% up
- Kind
- Text
- ID
- mrrgrh
16 comments
Deleted before we saved it.
Yep. I can also scan for it and see its hostname
Scan for it how?
running with
ssh -vvvshould give some more verbose output which could help identify the issueSure, here is the output with -vvv
ssh pi@192.168.1.195 -vvvOpenSSH_8.5p1, OpenSSL 1.1.1k 25 Mar 2021debug1: Reading configuration data /etc/ssh/ssh_configdebug1: /etc/ssh/ssh_config line 20: include /etc/ssh/ssh_config.d/*.conf matched no filesdebug1: /etc/ssh/ssh_config line 22: Applying options for *debug2: resolve_canonicalize: hostname 192.168.1.195 is addressdebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/tylo/.ssh/known_hosts'debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/tylo/.ssh/known_hosts2'debug3: ssh_connect_direct: enteringdebug1: Connecting to 192.168.1.195 [192.168.1.195] port 22.debug3: set_sock_tos: set socket 3 IP_TOS 0x48debug1: connect to address 192.168.1.195 port 22: Connection timed outssh: connect to host 192.168.1.195 port 22: Connection timed outdoesn't look really useful unfortunate
next step would be to check if you can actually ping the server
afterwards check if port 22 is actually the right one (since many guides will tell you to change the ssh port to something else)
Do you have any kind of firewall rules that prevent outgoing traffic? What's in your ssh config on line 22? Is your ssh config the same on your ubuntu config vs arch machine? Honestly I'm surprised how little output you have in a -vvv output.
I don't think I have any firewall rules. Don't have nft and when i run
iptables -nvL, no rules are shown.Don't have a config file in ~/.ssh but for /etc/ssh/ssh_config, I changed it to match Ubuntu's, but nothing changed.
UPDATE: I can ssh locally if I switch to the 2.4ghz signal on my arch machine. Not completely sure why thats the case but Ill look into it more
Try putting both on an ethernet connection.
Router is located far away from both, wouldn't be able to do that with buying some long ethernet cords.
Time to move some monitors and keyboards.
Sounds like you're having network problems but I would also check RPi's journalctl output. I don't know the service file name but It is probably something like
sshd.service.Nothing shows up for logs on the rPI side for arch trying to connect to it.