[Lxc-users] lxc-console over ssh

Michael H. Warfield mhw at WittsEnd.com
Wed Jul 27 20:24:48 UTC 2011


On Wed, 2011-07-27 at 21:12 +0100, John wrote: 
> Hi, quick one that is puzzling me. Do the lxc commands work over ssh ?
> 
> I am trying to open a console on a remote host. I try this:
> 
> $ ssh remote_host lxc-console -n vps_on_remote_host

> But I get an error:
> lxc-console: '0' is not a tty
> lxc-console: failed to setup tios

That's because ssh did not allocate a pty for your command.

Try this:

ssh -t remote_host lxc_console -n vps_on_remote

> Other commands work fine like this
> 
> $ ssh remote_host lxc-ls

Doesn't need a pty.

> works fine.
> 
> $ ssh remote_host lxc-start -n vps_on_remote_host
> 
> also works fine but the output (boot messages) don't appear in the ssh 
> session. The ssh session appears to hang until the container is closed down.
> 
> What am I missing?
> 
> In case you're wondering... I can't ssh vps_on_remote_host because it 
> isn't set up. The remote_host is in another room making the ssh more 
> convenient.
> 
> Thanks,
> John

Regards,
Mike
-- 
Michael H. Warfield (AI4NB) | (770) 985-6132 |  mhw at WittsEnd.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110727/6b64db57/attachment.pgp>


More information about the lxc-users mailing list