By Ed Bayudan
Help! Suddenly not able to connect to droplet via SSH. This after editing ssh_config to add a Host * and ServerAliveInterval 120 to keep node and java running. Now I get these: macMini:~ macuser$ ssh -vvv root@x.243.212.x OpenSSH6.9p1, LibreSSL 2.1.8 debug1: Reading configuration data /etc/ssh/sshconfig debug1: /etc/ssh/sshconfig line 20: Applying options for * debug1: /etc/ssh/sshconfig line 102: Applying options for * debug2: sshconnect: needpriv 0 debug1: Connecting to x.243.212.x [x.243.212.x] port 22. debug1: connect to address x.243.212.x port 22: Connection refused ssh: connect to host x.243.212.x port 22: Connection refused* I tried dpkg-reconfigure openssh-server - didn’t work. DB port 3306 still works
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!
Login via your DO control panel, edit /etc/ssh/sshd_config, and remove the parameter “ServerAliveInterval 120”, save and then restart the server:
systemctl restart sshd
or
service sshd restart
Good luck.
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.