By Venu Kommu
Hi, We were able to connect to Droplet previously, but since a month or two we are not able to connect due to SSH keys issue.
$ ssh -v venu@IP OpenSSH_8.2p1, OpenSSL 1.1.1d 10 Sep 2019 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling debug1: Connecting to IP [IP] port 22. debug1: connect to address IP port 22: Connection timed out ssh: connect to host IP port 22: Connection timed out
Almsot we tried all the possible ways, Appreciate if any suggestions Thank You Venu Kommu
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!
Hello, @venukommu
From what it seems like port 22 (ssh) is either closed or it’s not enabled for external access via the Firewall.
What you can do is to access your droplet using the console from your DigitalOcean control panel and check everything from there.
First you can make sure that sshd is running using the following command:
netstat -plunt | grep 22
If sshd is running then you can then make sure that ssh is allowed via the the firewall configuration tool.
You can make sure that UFW is running:
sudo ufw status
If it says it’s inactive you can enable it using this command:
sudo ufw enable
To allow all incoming SSH connections run this command:
sudo ufw allow ssh
An alternative syntax is to specify the port number of the SSH service:
sudo ufw allow 22
To allow incoming SSH connections from a specific IP address or subnet, specify the source.
sudo ufw allow from IPaddress to any port 22
Once this is done you can try to ssh again with the -vvv argument as it will show you a more verbose output.
Let me know how it goes.
Regards, Alex
Dear @alexdo, Thank you for your reply.
It seems already port 22 is enabled. See the output following, https://pasteboard.co/IXeddld.png
Apprecaite your help
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.