conecta-se à porta 22 do host localhost: Conexão recusada

1

Eu criei uma caixa do Vagrant do Ubuntu e ssh'd nela.

Agora, criei uma chave ssh e tentei ssh para meu host local, mas recebo o seguinte erro.

vagrant@vagrant-ubuntu-trusty-64:~$ ssh -vvvv localhost 
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: connect to address 127.0.0.1 port 22: Connection refused
ssh: connect to host localhost port 22: Connection refused

Quando verifico a lista de portas abertas da seguinte forma:

vagrant@vagrant-ubuntu-trusty-64:~$ sudo netstat -tulpn|grep 22
tcp        0      0 10.0.2.15:22            0.0.0.0:*               
LISTEN      11598/sshd

Eu vejo o endereço IP como 10.0.2.15:22. Além disso, meu serviço sshd está sendo executado também.

vagrant@vagrant-ubuntu-trusty-64:~$ ps aux|grep ssh
root     11430  0.0  0.7  68084  3688 ?        Ss   17:41   0:00 sshd: vagrant [priv]
vagrant  11432  0.0  0.3  68216  1908 ?        S    17:41   0:00 sshd: vagrant@pts/0 
root     11598  0.0  0.6  61388  3060 ?        Ss   17:44   0:00 /usr/sbin/sshd -D
    
por user1050619 14.09.2017 / 19:50

0 respostas