Why not fails to connect via SSH (via Putty) to the local computer?

Putty gives an error window "putty network error connection refused" when trying to connect to the local computer (ubuntu). What is the problem?
PS I'm a complete deletant in administrirovanie.
4 answers
July 2nd 19 at 14:02
Well, probably you have not installed OpenSSH Server. By the way, why putty when there is a ssh command!
ssh user@localhost -p [specify a port]
Then what is the wind cap!). But bash only appeared in the top ten) - norbert.Lang commented on July 2nd 19 at 14:05
: well, I Windows since XP don't know what's going on :) - August80 commented on July 2nd 19 at 14:08
Oh there are so many conductive nascosta!) PowerShell finished. Bash has built. Mkv built-in player is playing. Embedded hypervisor took second place after esxi. In Windows you can now disable the schedule. Shaman don't need to run games)))). Well, a lot of a lot of nascosta - norbert.Lang commented on July 2nd 19 at 14:11
: and viruses is also disabled? :) - August80 commented on July 2nd 19 at 14:14
: viruses?) no). - norbert.Lang commented on July 2nd 19 at 14:17
: : where you Windows found, TS wrote that Ubuntu - Golda_McLaughli commented on July 2nd 19 at 14:20
local computer ... maybe in the local network. Tags Ubuntu I do not see the issue - norbert.Lang commented on July 2nd 19 at 14:23
: well for me the local computer is a local machine, and everything else - the remote machine; about Ubuntu written in the question, but about Windows at all any mention.
However, there may be generally a dev with Ubuntu, it is easier to wait until the vehicle itself is write. - Golda_McLaughli commented on July 2nd 19 at 14:26
July 2nd 19 at 14:04
In summary (and a bit gag) - open the terminal and execute the command. At the second command, it may ask you for a password, this is normal, try to enter your. If not approached, it is looking for someone who put Ubuntu and then tormented it :)
1. Check whether the processes, in fact, the SSH server
ps aux | grep ssh
If you see in the output only the command, put OpenSSHd
sudo apt-get install openssh-server
If written, what is already the newest version then try to run
sudo service ssh restart
ps aux | grep ssh
If not there, then the output of the following commands at the Studio:
cat /etc/ssh/sshd_config
tail -10 /var/log/syslog

2. If in the output of ps aux is something like /usr/sbin/sshd -D,
sudo netstat-4nlp | grep sshd
If there is no 0.0.0.0:22, and, for example, 0.0.0.0:2222, then change the port in PuTTY on 2222 (you can also fix in sshd_config, but that is for later)
If everything is OK, then there is a firewall
sudo iptables-save
and in the Studio
July 2nd 19 at 14:06
Connection refused - connection refused. This error typically occurs if on the other side no one accepts connections, such as ssh service is not running.
July 2nd 19 at 14:08
Under the local computer in this context I mean the connection to itself. If you are unable to connect to 127.0.0.1, you are not running the sshd daemon, or very crooked iptables rules that need to be demolished.

P. S. you are still an Amateur in Russian language

Find more questions by tags Network administrationSystem administrationPuTTYSSH