By Bart Moons
Hi, I can’t login via ssh. I added a ssh key, rebooted my droplet, created a new one, … but nothing seems to work. If I run ‘ssh root@xxx.xxx.xxx.xxx’, I get ssh: connect to host xxx.xxx.xxx.xxx port 22 bad file number. I don’t think it has anything to do with my ssh keys, because other projects are working fine…
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!
For those with similar problems: I added a SSH key, but reset my root password. I think that prevented me to log in via SSH. Rebuild the droplet and you are good to go.
With verbose I get the following: OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007 debug1: Connecting to xxx.xxx.xxx.xxx [xxx.xxx.xxx.xxx] port 22. debug1: connect to address xxx.xxx.xxx.xxx port 22: Attempt to connect timed out without establishing a connection ssh: connect to host xxx.xxx.xxx.xxx port 22: Bad file number
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.