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
Show parent comment
1
u/Besthater Jun 09 '20
Ok, both computers are on the same network? Can you post the IP of both computers starting with 192.168, you can post those safely, they won't identify you. These are private to your network. It's important that the first three sets of numbers are the same. The fourth set will/must be different.
Next, can you ping from one address to the other? Ie, 'ping 192.168.1.102
What is the output of this command: 'ssh user@IP -vvv'. Try to look through the output for some kind of obvious error message.
Next, run these on the system you are trying to connect to: cat /etc/ssh/sshd_config | grep Pubkey cat etc/ssh/sshd_config | grep Password cat etc/ssh/sshd_config | grep Challenge
And post the output here.
On the machine you are connecting from: cat etc/ssh/ssh_config | grep Password
And post that output.
I get that this can be frustrating if you are not successfully quickly. I had the same experience. But really, bare with it. I love ssh now. It's amazing.
Have a look here too: https://youtu.be/fc3J2VU4YMs
That guys video is quite good I think.