After sysupgrade I can't access the router via SSH

After doing a firmware upgrade with the sysupgrade package I can't access the router.
I tried using Web access and SSH access.
The router get its IP address via DHCP. Currently should be "10.219.116.129".
Using Putty with defaults (port 22, ssh/telnet) I receive an error: "connection refused"

Can you access the device via a web browser?

No. I can't access via Web. That is why I am trying via SSH.

Maybe there is some parameter missing. I am using all defaults, no user name nor password.

you need to use the username root.

You described the router obtaining an IP address via DHCP. This would imply you're referring to the WAN interface, which is firewalled by default. For security, access to SSH and the web GUI is not allowed from WAN by default.

Have you tried connecting to the router via the LAN interface?

Aa another user noted, the default is:

User: root
Password: < blank>

1 Like

Hello.
I change the ip to root@ip format. But it still gives me 'connection refused'
I confirmed that I can ping to the WAN ip address.

My computer have one RJ45 port. I connected the port to a Lan port of the openwrt router. According to Windows it received the ip/Connection

IPv4 Address: 10.219.116.131
IPv4 Subnet Mask: 255.255.255.0
IPv4 Default Gateway: 10.219.116.209
IPv4 DHCP Server: 10.219.116.209
IPv4 DNS Server: 10.219.116.209

So, I tried to SSH to 10.219.116.209 but it failed.

Also, the openwrt router get its WAN address from another router/DHCP. I found the WAN got ip/10.219.116.128. So I also tried SSH to 10.219.116.128, but it also failed.

As a reminder: OpenWrt blocks SSH from WAN by default.

You must try from LAN.

The WAN and LAN network IP ranges shouldn't match - something is wrong.

I found the solution.

Set the Computer ip to a static value(ip/192.168.1.10) in the same network as the default router ip/192.168.1.1.

Then you can SSH successfully.

Bye the way, you can access the router through WEB GUI also.

Yes, but setting a static IP isn't required. OpenWrt runs a DHCPv4 server by default. And yes, the web GUI should be available (that's common information about OpenWrt, apologies if you were not aware). Nonetheless, you wouldn't be able to access a web GUI until you had an IP address [assigned to the computer] to establish a TCP/IP connection.

In other words, something is still wrong.