Hacker News new | ask | show | jobs
by seancron 5282 days ago

  Do it now! Modify /etc/ssh/ssh_config.
Correct me if I'm wrong, but shouldn't it be:

  Do it now! Modify /etc/ssh/sshd_config.
1 comments

You're right, of course.

Ignoring my opinion of _not_ using a non-standard port, I would update both of the files you listed.

One on the server, to switch to the new port. And one on the client, to modify (or create) a configuration section that (among previous options) now lists a non-default port.

Who in his right mind would want to give the port manually on ever connection attempt? :)

Another way (for the client after setting the server up):

Create the file ~/.ssh/config, then fill it like this:

Host mymachineip

Port 443