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

IT said…
Great Article
Cyber Security Projects

projects for cse

Networking Projects

JavaScript Training in Chennai

JavaScript Training in Chennai

The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

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

E: Package 'aptitude' has no installation candidate

CURL COMMAND ON RUBY ON RAILS

CHECK PASSENGER RUBY PATH

UPLOAD ANY MEDIA FILE IN RAILS USING PAPERCLIP