Hello,
I have a mailserver running iRedmail - due to some issues with rDNS and ptr records, I was required to change the hostname.
I changed the following config files:
/etc/hosts /etc/hostname /etc/ssl/<redacted>
Since this change, I’ve been unable to SSH into the server - I’ve tried multiple points of entry, locally using Putty and from several remote VPSs, all fail with a connection timeout. An example of the timeout:
user@server:~$ ssh -v <user>@<FQDN> -p <port> OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to <redacted> port <port>. debug1: connect to address <redacted> port <port> Connection timed out ssh: connect to host <redacted> port <port>: Connection timed out
Putty shows almost identical logging output.
I’ve recursively grep’d for the old hostname:
sudo grep -Rio “<old_hostname>” /
Initially, this turned up some PKI entries, so I simply piped the output into sed -i. I’ve since checked and there are no more references to the old hostname anywhere, yet I still cannot connect. Of course, I’ve rebooted the server a number of times and ensured all available services are running - if I attempt to SSH into the default port (from which I’ve changed), I immediately get connection refused.
FYI: I can login via tty1 (console access).
Any help or advice would be appreciated
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
This comment has been deleted
Hi. Are you using Cloudflare by any chance? Also, are you able to SSH into your droplet using the IP address instead of the hostname? (e.g. ssh user@ip -p port)
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.