Display MoreHi again,
I had to abandon this project for a while and didn't want to respond until I had a chance to set this up and try it.
So I already had my key set up and use it already to sign in. When I tried to turn off password login, I found that I can't write to the \etc\ssh\sshd_config file as it's read-only. If I've read correctly, I cloned that file to ~/.ssh/config and made 3 adjustments.
As you may have guessed, I no longer have access as it appears you can not change the default port. I read that it's good practice to not use the default port, so I never thought I wouldn't be able to do so. I also have the firewall turned off, so I didn't think it would be an issue.
I'm assuming this is the issue at least. All attempts to ssh in is greeted with "connection refused"
I can't seem to find a way back in and wondered if someone could help me without having to lose all of the settings I've configured so far.
Thanks!
Not sure what you'r trying to do but you don't really need to change any ports from your OS..
You change the ports when you forward them to the outside world trough your router.