12-03-2019, 01:56 PM
When changing SSH port I always perform these actions:
Currently we don't know the exact issue because the "lost SSH access" can be due to:
You said that your IP has been changed, did you try to flush your DNS records? Did you try SSH into VPS using the IP address directly?
- First allow traffic on the interested port and make sure to reload/restart the firewall service
- Edit sshd.conf replacing port 22 with the interested port and make sure to restart sshd service
- (It is possible that a reboot is required: only once happened to me)
Currently we don't know the exact issue because the "lost SSH access" can be due to:
- Closed port
- sshd service not running
- Unmatching host-keys betweeb device and server.
You said that your IP has been changed, did you try to flush your DNS records? Did you try SSH into VPS using the IP address directly?