Everything worked fine - until I thought I would give the machine (and router) a cold reboot - before going away for a couple of months. After following all of the previous steps given to me in my previous questions, I find I can't login back to the server machine from my laptop.
Here are the salient facts:
- Host machine (to be logged into) has SSH service running
- Host machine has static IP address configured (same IP as I was using before)
- No-IP update client is running on the host machine
- I can SSH into host machine from my laptop, when I'm on the same LAN, by using the local IP address 192.168.x.x
- The registered NO-IP address has not expired (I only registered it a few days ago - and I double checked by logging into my account - it has any correct public facing IP address)
- Port forwarding has been set up on the router, with SSH running on the default port of 22.
$sudo ufw status To Action From 22 Allow Anywhere 22(v6) Allow Anywhere (v6)
Fail2ban has been installed on the host machine and was working well with my previous setup. I have currently stopped the service, whilst I try to figure out what is going on.
SSH has been set up on the host machine with the following config:
- Port 22
- PermitRootLogin no
- PubkeyAuthentication yes
- PasswordAuthentication no
When I attempt to SSH remotely, using my registered hostname from no-ip, I get the following error (this used to work fine until yesterday):
ssh -v [email protected] OpenSSH_6.9p1 Ubuntu-2ubuntu0.1, OpenSSL 1.0.2d 9 Jul 2015 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to myhostname.ddns.net [184.108.40.206] port 22. debug1: connect to address xxx.yyy.zzz.123 port 22: Connection refused ssh: connect to host myhostname.ddns.net port 22: Connection refused
Can anyone see what may be going wrong?. I have a flight in a few hours time, and I desperately need to get this sorted out, so I can remotely access my local machine from my laptop.