Trying to ssh into router

but I can't figure out the password? -- tried both my computer password and the router password but it boots me out

the router is at default settings / just reset it

I see this topic but I do not understand the answer -- very new to linux and openwrt

If it has been reset to defaults, then there is no password. Can you copy here the messages you see when you try to connect, please?

" user@user:~$ ssh 192.168.1.1
user@192.168.1.1's password:
Permission denied, please try again. "

(blurred out username + computer name)

did not set a password as far as I know -- maybe its the wifi password?

edit: nope its not the wifi password
" Connection closed by 192.168.1.1 port 22 "

Try with “ssh root@192.168.1.1”.

it still asks for a password sadly

Do you have any other network connections?

  • Make sure your computer is connected directly to the router via ethernet (to a lan port on your router).
  • Disable wifi on your computer
  • disconnect any other ethernet connections from your computer
  • disconnect any other ethernet connections from the router.

Then try ssh again.

ohhhh - ok, does it need to be ethernetted to ssh?

(thats probably my problem if so!)

do you know why it is asking for a password though?

(I have other network connects set up - but they are not currently connected? would that affect it?

Well, if the device has been reset, yes. Wifi is disabled by default. That means ethernet is mandatory.

I suspect that you are reaching some other device, not the router. That device may have a password on it.

Make sure that you can guarantee that there is one, and only one, network connection. In other words, Ethernet between your computer and a lan port on your computer. Wifi disabled, no other physical connections.

1 Like

the solution happened in an unknowable way - thru resetting the router somehow

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.