F
F
freestm2016-11-26 18:03:08
SSH
freestm, 2016-11-26 18:03:08

Why can't I connect via SSH (via Putty) to the local computer?

Putty throws a "putty network error connection refused" error window when trying to connect to the local machine (with ubuntu). What is the problem?
PS I am a complete delegate in administration.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Andrey, 2016-11-27
@Andrusha

Summarizing the above (and a little gag) - open the terminal and execute the commands. On the second command, he may ask for a password, this is normal, we try to enter our own. If it didn’t fit, then we are looking for the one who installed ubuntu and continue to torture him :)
1. Check if the processes actually have an SSH server.
If we see only this command in the output, set OpenSSHd
. then we try to run
If it does not appear, then the output of the following commands to the studio:
2. If the output of ps aux contains something like /usr/sbin/sshd -D, then
If there is not 0.0.0.0:22, but, for example, 0.0. 0.0:2222, then we change the port in PuTTY to 2222 (and you can also fix it in sshd_config, but that's later)
If everything is OK, then the firewall remains
and output to the studio

M
Maxim, 2016-11-26
@khrisanfov

Well, probably not installed OpenSSH Server. By the way, why putty when there is an ssh command!

ssh [email protected] -p [specify port]

C
CityCat4, 2016-11-26
@CityCat4

Connection refused - connection refused. This error usually occurs if no one is accepting connections on the other side, for example, the ssh service is not running.

V
Valentin, 2016-11-27
@vvpoloskin

By local computer in this context, I mean connecting to myself. If you can't connect to 127.0.0.1, you don't have the sshd daemon running, or very crooked iptables rules that need to be demolished.
PS you are also an amateur in Russian

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question