SOLVE PORT 22: CONNECTION REFUSED SSH LOGIN

When we login using ssh command from local.

If we get some error like :-

ssh root@131.14.150.283

ssh: connect to host 136.144.156.213 port 22: Connection refused

For solving that problem. Please go to the server droplet console on browser and run those commands :-


root@131-14-150-283:~$   sudo apt-get install openssh-server

Then run

root@131-14-150-283:~$   ps -ef | grep sshd

root@131-14-150-283:~$   sudo ufw allow 22

WE CAN FOLLOW THE LINK BELOW :-

https://www.digitalocean.com/community/questions/ufw-restart-required-after-droplet-reboot-to-allow-ssh

https://www.digitalocean.com/community/tutorials/how-to-use-the-digitalocean-console-to-access-your-droplet

Comments

Popular posts from this blog

psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

CARRIERWAVE - UPLOAD ANY MEDIA (AUDIO , VIDEO AND IMAGE ) FILE IN RAILS

SELECT COUNTRY WITH STATE AND IT'S CITIES RAILS

RAILS: UPLOADING PHOTOS VIA AMAZON S3 AND PAPERCLIP (UPLOADING FILES TO S3 IN RUBY WITH PAPERCLIP)

SEARCHING USING AJAX IN RAILS

UPLOAD ANY MEDIA FILE IN RAILS USING PAPERCLIP

UNINITIALIZED CONSTANT PAPERCLIP::STORAGE::S3::AWS

CURL COMMAND ON RUBY ON RAILS

CHECK PASSENGER RUBY PATH