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

Popular posts from this blog

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)

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

CREATE API FOR USER SIGN UP, LOGIN AND CREATE PUBLISHER WITH CURRENT USER

HOW TO CALL RAILS API FROM SIMPLE HTML PAGE.

DEPLOYING PROJECT USING CAPISTRANO (CAPISTRANO IN RAILS)