I have installed the Snappy Ubuntu Core alpha using KVM, but cannot connect to it using SSH.
ssh_exchange_identification: read: Connection reset by peer, which seems like a server-side error on the image.
The host system is Ubuntu 14.10 Desktop.
Installation instructions: http://blog.dustinkirkland.com/2014/12/its-a-snap.html
$ 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
The image seems to be running: The expected QEMU window opens, "Booting from disk...". A QEMU process starts to use CPU and MEM in top. QEMU begins listening on the appropriate ports:
$ 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 [...] $
No firewall rules block ports 22, 443, 2222, or 4443 on the 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
In a different terminal window, I try to ssh into the Snappy Ubuntu Core system:
$ 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 $
Did I make a mistake? Or could this be a bug?