Possible to change the Console Access port #?

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.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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