[Solved] SSH refused. Connection timeout

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
lateboomer
Posts: 19
Joined: Sun Apr 15, 2018 5:26 am

[Solved] SSH refused. Connection timeout

Post by lateboomer »

Hi,

I changed my router because the old one started to loss connection. After changed, from the hdmi connected monitor, Usbridge showd ip address changed from 192.168.x.239 to 192.168.x.101. The network settings is still DHCP.

However, with the new ip address, I can't use Putty to ssh login to Usbridge anymore, even the Allo web configuration page also not running. At Putty, it would not allow login and connection timeout message prompted after some time. I checked dietpi-services status, it showed ssh was active and running. I updated Dietpi from v6.14 to the latest v6.16 but the issue still remained.

I further check system settings with "systemctl status ssh", it says:
[sshd] server listening on 0.0.0.0 port 22
[sshd] server listening on :: port 22

I can't ping 192.168.x.101 from my local pc also. Could anyone help me?
lateboomer
Posts: 19
Joined: Sun Apr 15, 2018 5:26 am

Re: SSH refused. Connection timeout

Post by lateboomer »

I also can run:
ssh 127.0.0.1
ssh 192.168.x.101 -p 22

from the hdmi attached monitor but I just can't remote ssh login to Dietpi from my local pc.
lateboomer
Posts: 19
Joined: Sun Apr 15, 2018 5:26 am

Re: SSH refused. Connection timeout

Post by lateboomer »

I got ssh to work now. I go to dietpi-config and change Ethernet settings to Static and ip address to 192.168.100.140. Before I changed the ip, the value shown was 192.168.0.101 and gateway was 192.168.0.1.

I think this is wrong, the subnet value x supposed should be 100 not 0. Anyway, it is working now.
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: SSH refused. Connection timeout

Post by MichaIng »

Hmm, perhaps some issue/inconsistency with your new routers DHCP server. Did you restart network (ifdowm/ifup, systemctl restart networking, systemctl restart dhclient, or something like that) on the Usbridge after switching and setup new router?

However I mark this topic is solved.
Post Reply