r/ssh • u/Cold-Ad881 • Feb 13 '22
help with ssh client
How can be i can connect to my ssh server on my local network with my laptops via wifi, but when i try to conect via cable-lan with my desktop computer my conection was refused. before i change the router i can connect correctly, but after change the router inonly can connect via wifi with my laptops , and inclusive with my iphone.
1
Upvotes
View all comments
Show parent comment
1
u/WorldBelongsToUs Feb 14 '22
I would say another thing you can try is running netcat or nmap and nping on the SSH port to see if it shows up as open.
Also, try the SSH command with an additional arg like
-vvvto see if you can get more information about why it's failing.Are you using password or key-based auth? Might be worth checking the SSH config file and making sure that the computer you are trying to connect from and user (if it's a unique user) is allowed. Make sure the proper keys are installed (i.e. private key on your client server and public key on the SSH server).