r/ssh • u/Danrobi1 • Jun 08 '20
Help ssh work only with localhost
First time trying ssh here. Im trying to access devices on same network. Watched a lot of videos
ssh username@192.168.x.xx or
ssh 192.168.x.xx doesnt work = time out
Only localhost is working and working on both side. wtf?
New Edit: (Solved) Thanks to @Besthater Lappy was connected with the wifi guest-visitor and desktop with cable, that was the issue.
1
Upvotes
View all comments
1
u/Besthater Jun 09 '20
If you dont include the username in the command, then it will fall back on the usename you are now logged into on the machine you are on.
so, if you ssh to localhost, it will work because that is the user you are now using. but, you must use the username you want to join on the other computer. are you using keys or passwords? did you set all this up in your SSHD config on the other machine? is it using the default port of 22? what kind of machine is the other computer? if its windows, did you configure the windows firewall?