Instalei o alpha do Snappy Ubuntu Core usando o KVM, mas não consigo me conectar a ele usando o SSH.
O SSH retorna ssh_exchange_identification: read: Connection reset by peer
, o que parece ser um erro do lado do servidor na imagem.
O sistema host é o Ubuntu 14.10 Desktop.
Instruções de instalação: link
$ sudo apt-get install kvm
$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
$ wget http://cdimage.ubuntu.com/ubuntu-core/preview/ubuntu-core-alpha-01.img
$ kvm -redir :2222::22 -redir :4443::443 ubuntu-core-alpha-01.img
A imagem parece estar em execução: A janela esperada do QEMU é aberta, "Inicializando do disco ...".
Um processo QEMU começa a usar CPU e MEM no topo. O QEMU começa a escutar nas portas apropriadas:
$ sudo netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:2222 0.0.0.0:* LISTEN 11303/qemu-system-x
[...]
tcp 0 0 0.0.0.0:4443 0.0.0.0:* LISTEN 11303/qemu-system-x
[...]
$
Nenhuma regra de firewall bloqueia as portas 22, 443, 2222 ou 4443 no host:
$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
ACCEPT udp -- anywhere anywhere udp dpt:bootps
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Em uma janela de terminal diferente, tento ssh no sistema Snappy Ubuntu Core:
$ ssh -vv -p 2222 ubuntu@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 2222.
debug1: Connection established.
debug1: identity file /home/ian/.ssh/id_rsa type 1
debug1: identity file /home/ian/.ssh/id_rsa-cert type -1
debug1: identity file /home/ian/.ssh/id_dsa type 2
debug1: identity file /home/ian/.ssh/id_dsa-cert type -1
debug1: identity file /home/ian/.ssh/id_ecdsa type -1
debug1: identity file /home/ian/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/ian/.ssh/id_ed25519 type -1
debug1: identity file /home/ian/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-8
ssh_exchange_identification: read: Connection reset by peer
$
Eu cometi um erro?
Ou isso pode ser um bug?