How I can change the SSH and WEB Ports?

All IP networking related issues
Post Reply
iz1xbb
Posts: 1
Joined: Wed Jan 24, 2024 5:52 am
Location: Tortona (AL) - Italy
Contact:

How I can change the SSH and WEB Ports?

Post by iz1xbb »

Dear all,

Sorry for the trouble, but I really need your help.

I need to change the SSH and WEB ports of my pi-star, having two repeaters installed under the same static IP (internet connection).

Unfortunately I'm a newbie to linux and I don't know all the logic to be able to be autonomous.

Is there any willing and patient OM among you who can write me all the terminal commands to be able to perform this procedure successfully?

I thank you for your patience and your help.

73 IZ1XBB

Pier Paolo
[email protected]
M1DNS
Pi-Star Team
Posts: 1376
Joined: Thu Apr 05, 2018 5:30 am

Re: How I can change the SSH and WEB Ports?

Post by M1DNS »

Im fairly sure you can still change the server port using this method. I can't fully recall if changes stop this or not so...


Type. rpi-rw

Type. sudo nano /etc/nginx/sites-available/pi-star

Where you see listen 80 default_server; change that to listen 8080 default_server;

Save the file with Ctrl-X

Reboot Pi-Star and the dashboard should now be on port 8080

http://pi-star:8080

Use 8080 for the 2nd port as its already allowed to pass through the firewall rules.

If you choose anyother port you'll need to update the iptables to allow the firewall to pass it.


Sent via smoke signals using my SM-G935F


There shouldn't be any need to change the ssh port as you'll access the Pi's using their internal ip address from inside ur network. Unless ur thinking of opening it to the outside, which I'd reply with a -- hell no.


Andrew M1DNS.
Pi-star Admin Team.
Post Reply