How to host a SSH server behind Linksys EA7500 Max-Stream AC1900 router

After I had set up WordPress on Raspberry Pi 3 and configured my Linksys EA7500 Max-Stream AC1900 router to enable outside access to the web server, I found that there were times that I needed to SSH into the Raspbian operating system to try things out when I was away from home.

To ensure I have a quick reference on hosting a SSH server behind Linksys EA7500 Max-Stream AC1900 router, if I needed to, I documented the steps to do so in this blog.

Logging into the admin portal of Linksys EA7500 Max-Stream AC1900 router

To begin with configuring the Linksys EA7500 Max-Stream AC1900 router to allow access to a SSH server, you will need to access the admin portal. The admin portal of the Linksys EA7500 Max-Stream AC1900 router is accessible via http://192.168.1.1/. Once you enter http://192.168.1.1/ in the location bar of your router, you will be shown the login screen:

Linksys EA7500 Max Stream AC1900 login page

If you had not setup a password for accessing the admin portal, the default password for accessing the admin portal of the Linksys EA7500 Max-Stream AC1900 router is admin.

After logging in, you will see the following screen:

Linksys EA7500 Max-Stream AC1900 after login page

Reserving a private IP address for your SSH server

It would be inconvenient if the router gives our SSH server a different private IP address every time we restart our SSH server. To ensure that the Linksys EA7500 Max-Stream AC1900 router reserves a private IP address for our SSH server, we can perform the following steps:

Click on Connectivity on the panel to the left to get into the Connectivity screen:
Linksys EA7500 Max-Stream AC1900 connectivity page

Click on Local Network tab on the top to get into the Local Network screen:
Linksys EA7500 Max-Stream AC1900 local network page

Click on the DHCP Reservations button to get into the DHCP Reservations screen:
Linksys EA7500 Max-Stream AC1900 DHCP Reservations page without entries

Select the SSH server entry and click on the Add DHCP Reservation button to get the router to reserve that private IP address for the SSH server:
Linksys EA7500 Max-Stream AC1900 DHCP Reservations page with raspberrypi in reserved list

Forwarding port 22 to your SSH server

The last thing to do is to get your Linksys EA7500 Max-Stream AC1900 router to:

  1. reserve the standard port for SSH for our SSH server.
  2. forward any traffic that the router receives at port 22 to our SSH server.

This is known as port forwarding.

To configure our Linksys EA7500 Max-Stream AC1900 router to perform port forwarding for port 22, we can perform the following steps:

Click on Security on the panel to the left to get into the Security screen:
Linksys EA7500 Max-Stream AC1900 Security page

Click on Apps and Gaming tab at the top to get into the Apps and Gaming screen:
Linksys EA7500 Max-Stream AC1900 Apps and Gaming page

Click on Single Port Forwarding link to get into the Single Port Forwarding screen:
Linksys EA7500 Max-Stream Apps and Gaming Single Port Forwarding without entries

Click on Add a new Single Port Forwarding button, key in the entry to map port 22 of the public IP address (External Port) to port 22 (Internal Port) of the SSH server:
Linksys EA7500 Max-Stream Apps and Gaming Single Port Forwarding for port 22
Click on the Save link beside the entry to persist the record.

Once you are done, the Single Port Forwarding screen should look like the following:
Linksys EA7500 Max-Stream Apps and Gaming-Single Port Forwarding with port 22 mapping

Finally, click on the Apply button and then the Ok button to get the Linksys EA7500 Max-Stream AC1900 router to remember the port forwarding configurations.

About Clivant

Clivant a.k.a Chai Heng enjoys composing software and building systems to serve people. He owns techcoil.com and hopes that whatever he had written and built so far had benefited people. All views expressed belongs to him and are not representative of the company that he works/worked for.