By alucardu
I’ve created a new droplet using a image. I’m trying to connect to it through ssh but I’m getting a port 22: Connection timed out error.
I’ve tried rebooting the system through the DO console.
I’ve tried the following:
sudo apt-get install openssh-server
sudo apt-get install openssh-client
/etc/init.d/ssh start
Rather than invoking init scripts through /etc/init.d use the service(8) utillity, e.g. service ssh start
Since the script you are attempting to invoke has been converted to and Upstart job, you may also use the start(8) utillity, e.g.e start ssh
sudo service ssh status
/lib/init/ upstart-job: 28 : shift: can't shift that many
sudo service ssh status
ssh start/running, proces 1702
When I go to the ip adres I get forwarded to the website.
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
Hello, @alucardu
If you’re able to access your droplet using the console from the control panel you can check if the ssh service is running using:
service sshd status
if the service is stopped/dead you can start it:
service sshd start
Also you can check if something else have taken the ssh port using netstat:
netstat -plunt | grep ssh
and
netstat -plunt | grep 22
If you’ve made changes to your ssh configuration (e.g switched ports) you should check for the port which is used from sshd
Hope this helps!
Regards, Alex
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.