I
I
Ivan Kozlov2016-01-17 11:44:21
linux
Ivan Kozlov, 2016-01-17 11:44:21

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
9b7e015cc8fa4509b0f4cf8808bbaa32.png
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

3 answer(s)
J
jcmvbkbc, 2016-01-17
@trampick

It appears from your screenshot that sshd is not running.

O
oldbro, 2016-01-17
@oldbro

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).

O
Oleg Tsilyurik, 2016-01-17
@Olej

Your sshd is not running.
Do:

# service ssh status
# service ssh start

And don't go for SSH checks from under putty/Windows (it's shit or something).
When debugged - you can walk from under what you want.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question