Answer the question
In order to leave comments, you need to log in
Installing and configuring ssh. Putty throws a connection refused error. What to do?
There is a droplet on digitalOcean. There is a site on node.js. Everything is working. The server was set up by a person with whom there are no contacts.
At one point, ssh through putty stopped working. Access to the console remained through the digitalocean cabinet.
I installed ssh, openssh-server, openssh-client and configured sshd config according to the manual. Then there was a restart of ssh. It doesn't give any errors. Writes that everything is OK, the launch has been completed.
ps auxw | grep ssh gives
ssh swears connection refused error.
Googling and searching for the problem did not bear fruit. Maybe I don't even know how to google correctly :)
Also, my knowledge of linux administration is much to be desired.
Which way to go to correct the error? Where to begin? Maybe this is a common mistake?
Answer the question
In order to leave comments, you need to log in
It's easier to use pgrep sshd - if there is a PID number, then it's running.
Look in /var/log/auth.log.
Check in sshd.conf:
-what protocol is sshd listening on: v1 or v2. Accordingly, in putti, too.
- whether login by password is allowed, and not only by key (of course, it is more correct to use the key, but at this stage it is necessary to check).
Your sshd is not running.
Do:
# service ssh status
# service ssh start
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question