I've recently installed CentOS 6 on an old Dell PC. I'm trying to setup OpenSSH at the moment, I been following some tutorials (http://www.youtube.com/watch?v=QKafb0koJEg) on You Tube, while they have been very helpful I'm at the point where I need to ask some questions.
My goal here is to be able to access the server from my work computer and from my personal laptop (which will be on the same home network as the server).
I've installed OpenSSH with no issues.
The first thing I was advised to do was change the default port.
So in the sshd_config file, I've changed Port 22 to Port xxxx (where xxxx is a obviously a four digit value).
I then restart the sshd service. I've also configured my router for forward port 22 onto xxxx.
Is there anything else I need to do?
I've generated the keys on my laptop, and I'm trying to copy them to the server as follows:
scp id_rsa.pub xxxxxxxx@localhost:.ssh/authorized_keys
but this command fails with the following error message:
ssh: connect to host localhost port 22: Connection refused lost connection
Any help appreciated.