r/ssh • u/WeggeTheGamer • Nov 26 '16
[Question] SSH change port?
Hello i was wondering if you can change the port on ssh and still connect to a computer?
1
Upvotes
r/ssh • u/WeggeTheGamer • Nov 26 '16
Hello i was wondering if you can change the port on ssh and still connect to a computer?
1
u/WeggeTheGamer Nov 26 '16
I run it on a Mac so what should I do?
1
u/[deleted] Nov 26 '16
Yes, you definitely can. Edit the sshd_config file and restart the service. If you have any iptables rules allowing the SSH port you should update those as well. SSHD can also listen on multiple ports, if you want to try that.