[Lxc-users] Ubuntu lxc on top of RHEL

Devendra K. Modium dmodium at isi.edu
Thu Jul 21 13:16:48 UTC 2011


These are the logs when I do ssh inside the container to
host machine.

sshd -vv 10.3.1.1

debug2: no key of type 0 for host 10.3.1.1
debug2: no key of type 2 for host 10.3.1.1
debug1: read_passphrase: can't open /dev/tty: No such device or address
Host key verification failed.

I copied only part of the log from output which I suspected the issue.

As it says unable to open /dev/tty.But below logs show otherwise.

root at gpu1:~# ls -ltr /dev/tty*
lrwxrwxrwx. 1 root root   10 2011-07-21 21:00 /dev/tty1 -> /dev/pts/0
crw-rw-rw-. 1 root root 5, 0 2011-07-21 21:05 /dev/tty

Also I tried to create /dev/tty0 only facing the error permission denied.

I have downloaded the image from below link, which I strongly believe 
is configured from lxc-ubuntu seeing th lxc.conf file inside the container
filesystem.

wget https://s3.amazonaws.com/nova-deployment-tool/image_lxc.gz


Regards
Devendra



----- Original Message -----
From: "Ramez Hanna" <rhanna at informatiq.org>
To: "Devendra K. Modium" <dmodium at isi.edu>
Cc: lxc-users at lists.sourceforge.net
Sent: Thursday, July 21, 2011 3:13:56 AM
Subject: Re: [Lxc-users] Ubuntu lxc on top of RHEL

On Thu, Jul 21, 2011 at 4:31 AM, Devendra K. Modium <dmodium at isi.edu> wrote:
> Yes network works.I am able to ping the container.
>
> ----- Original Message -----
> From: "Daniel Baumann" <daniel.baumann at progress-technologies.net>
> To: lxc-users at lists.sourceforge.net
> Sent: Wednesday, July 20, 2011 4:49:52 PM
> Subject: Re: [Lxc-users] Ubuntu lxc on top of RHEL
>
> On 07/20/2011 10:14 PM, Devendra K. Modium wrote:
>> But even though sshd demon gets started. I am not able to ssh into the container.
>
> does network work?
>
> --
> Address:        Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
> Email:          daniel.baumann at progress-technologies.net
> Internet:       http://people.progress-technologies.net/~daniel.baumann/
>
> ------------------------------------------------------------------------------
> 10 Tips for Better Web Security
> Learn 10 ways to better secure your business today. Topics covered include:
> Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
> security Microsoft Exchange, secure Instant Messaging, and much more.
> http://www.accelacomm.com/jaw/sfnl/114/51426210/
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
>
> ------------------------------------------------------------------------------
> 5 Ways to Improve & Secure Unified Communications
> Unified Communications promises greater efficiencies for business. UC can
> improve internal communications as well as offer faster, more efficient ways
> to interact with customers and streamline customer service. Learn more!
> http://www.accelacomm.com/jaw/sfnl/114/51426253/
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
>

so if i understand you correctly
you start container
login using the console
start sshd
there are no errors
but ssh from host to container gets through the auth and then
connection is reset

did you try to ssh localhost inside the container
can you show any logs for sshd
you are using openstack to run the container but how did you create
the container?
did you use the lxc ubuntu scripts?




More information about the lxc-users mailing list