SSH Log in to the Router¶
Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. The best known example application is for remote login to computer systems by users. Sometime you need to have basic tools to SSH to the server. This guide is about how to SSH login to the GL.iNet routers.
For Windows User¶
There are many tools, like Windows PowerShell, PuTTY, Bitvise.
Using Bitvise¶
Using PuTTY¶
1. Download PuTTY¶
Download the latest PuTTY version from here.
2. Install PuTTY¶
3. Launch PuTTY¶
Click PuTTY from the Start Menu.
You will see the following Configuration Window.
Input Host Name (or IP address) 192.168.8.1
, keep Port as default 22
, select connection type as SSH
.
Input Your Session
in saved sessions, and Save
your content.
Then click Open
at the bottom.
A security alert will pop-up as below, click Yes
.
login as: root
Then input your admin password.
Note: You need to use your password which you set up the router at the first time.
When you see a picture above, that means you are now SSH login the router successfully.
For Linux/Mac User¶
The process on Linux and Mac OS are generally the same. Below we use Ubuntu as an example.
Using Ubuntu¶
1. Launch Terminal¶
Run Ubuntu.
Click the Terminal
icon to launch Terminal. Then input the following command:
ssh root@192.168.8.1
If you have ever connected to another router, host key verification failed may displayed as follow:
If this happens, run the command in the red box. Please copy the exact command which is displayed in your terminal.
ssh-keygen -f "~/.ssh/known_hosts" -R "192.168.8.1"
You may also encounter the following error when connecting:
Unable to negotiate with 10.0.0.1 port 22: no matching host key type found. Their offer: ssh-rsa
This error is due to a change in the Openssh package from version 8.8. To fix it, open the ~/.ssh/config file with a text editor (you can use for example Nano or Vim) and add the following lines:
host 192.168.8.1
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
Make sure to change the host IP if it is not the default one.
2. Log In Router¶
Retry the SSH login command:
ssh root@192.168.8.1
Type "yes".
Then input your router password. You can set this password when you first connect to your router.
When you see a picture above, it means you login the router successfully.
Troubleshooting¶
No matching host key type found. Their offer: ssh-rsa
Still have questions? Visit our Community Forum or Contact us.