Skip to content

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.

0 points15 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
0 · 43% up
Kind
Text
ID
mrrgrh

Author

1
posts
11
comments
0
media
View profile

16 comments

running with ssh -vvv should give some more verbose output which could help identify the issue

1 points
Tyl0OP2 hidden

Sure, here is the output with -vvv

ssh pi@192.168.1.195 -vvv
OpenSSH_8.5p1, OpenSSL 1.1.1k  25 Mar 2021
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 22: Applying options for *
debug2: resolve_canonicalize: hostname 192.168.1.195 is address
debug3: 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: entering
debug1: Connecting to 192.168.1.195 [192.168.1.195] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: connect to address 192.168.1.195 port 22: Connection timed out
ssh: connect to host 192.168.1.195 port 22: Connection timed out

0 points

doesn'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)

0 points

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.

1 points

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.

1 points

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

1 points

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.

0 points

Nothing shows up for logs on the rPI side for arch trying to connect to it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.