Question

Possible to change the Console Access port #?

Posted March 13, 2015 1.6k views
Linux BasicsUbuntuFirewall

Is it possible to change the port # that the console access tries to use? I believe my network at work has outbound port 22 blocked. Is there a way to change this to something like 443? I’m fairly new to Linux and that’s why I got this to begin with, to learn on my downtime.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

You can change your default ssh port in the configuration file /etc/ssh/sshd_config just open that file, find the line that says:

Port 22

and update it to the port you wish to use. You will then need to restart the ssh service:

service ssh restart
Submit an Answer