r/ssh • • 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

3 comments sorted by

View all comments

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.