Can't ssh into local server

Soldato
Joined
15 Feb 2003
Posts
10,140
Location
Europe
I'm running an ssh server at 192.168.0.100

I have latop on my network that i'm trying to ssh from into the server.

The server is running Debian, the laptop is running Mint.

I can connect via my android phone, but it i try to connect from the laptop either using the local ip or my public ip, I get the following:

Code:
ssh [email protected]
ssh: Could not resolve hostname 192.168.0.100: Name or service not known

I've also tried using the servers hostname too, but to no avail
 
No firewall running. Both hosts.allow and deny have all lines commented out.

After a restart of both, i can now ping the server, but ssh is not allowing me to connect using either the internal ip or my public ip.

I'm getting the same error. My android phone just connects instantly though.
 
Last edited:
Not sure if this will help or not but worth a try. Although doesn't make sense if your phone can talk to it.

As a test, try adding: ALL : ALL : allow to hosts.allow
 
No change.

I can't even ssh into the server from the server, if that makes sense.

EDIT:

I can get in if i specify "-p <port>"

Why is that shouldn't i just be able to add ":<port>" instead?

The problem is I use NXserver/Client and need ssh to work in the normal fashion.
 
Last edited:
Back
Top Bottom