[Bug 1317592] Re: cannot log into trusty ubuntu-cloud based LXC containers

Robie Basak 1317592 at bugs.launchpad.net
Thu May 29 11:49:14 UTC 2014


Thank you for taking the time to report this bug and helping to make
Ubuntu better.

It's not clear to me if this would be an issue with openssh, lxc or
cloud-init. But I was unable to reproduce your issue.

I had to make a couple of amendments to your instructions.

First, I presume your lxc-attach is run in a separate terminal to the
ssh command (ie. you're trying to ssh from the host, and not the
container)?

Second, `dig @10.0.3.1 base` didn't work for me. Instead, I used "lxc-
info -n base" to look up the IP address of the container.

Apart from this, I was unable to reproduce the issue. I do see "error:
Could not load host key: /etc/ssh/ssh_host_ed25519_key" but this does
not appear to affect anything:

root at base:~# tail /var/log/auth.log
May 29 11:39:43 base sshd[664]: Server listening on 0.0.0.0 port 22.
May 29 11:39:43 base sshd[664]: Server listening on :: port 22.
May 29 11:39:43 base chpasswd[800]: pam_unix(chpasswd:chauthtok): password chang
ed for ubuntu
May 29 11:39:59 base sshd[833]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
May 29 11:40:01 base sshd[833]: Accepted publickey for ubuntu from 10.0.3.1 port 44665 ssh2: RSA 5f:b2:ac:34:3f:50:62:99:64:d1:d7:78:4e:4a:83:00
May 29 11:40:01 base sshd[833]: pam_unix(sshd:session): session opened for user ubuntu by (uid=0)
May 29 11:40:01 base systemd-logind[572]: Failed to create cgroup name=systemd:/user/1000.user/30.session/user/1000.user: No such file or directory
May 29 11:40:01 base sshd[833]: pam_systemd(sshd:session): Failed to create session: No such file or directory
May 29 11:40:27 base sudo:   ubuntu : TTY=pts/0 ; PWD=/etc/ssh ; USER=root ; COMMAND=/bin/bash
May 29 11:40:27 base sudo: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)

root at base:/# dpkg-query -W openssh-server cloud-init
cloud-init      0.7.5-0ubuntu1
openssh-server  1:6.6p1-2ubuntu1
root at base:/# cat /etc/cloud/build.info 
build_name: server
serial: 20140416.1
root at base:/# 

It looks like my cloud image is current, but it does not include
openssh-server 1:6.6p1-2ubuntu2.

Please could you try to reproduce again on a fresh instance, to verify
that nothing has changed? Also, please report the cloud image build
information as well as the package versions you have of openssh-server
and cloud-init as above. Marking Incomplete in the meantime, since I
cannot reproduce with the instructions given. Please change back to New
when done. Thanks!

** Changed in: openssh (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1317592

Title:
  cannot log into trusty ubuntu-cloud based LXC containers

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1317592/+subscriptions



More information about the Ubuntu-server-bugs mailing list