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 | [email protected] /\/\|=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!
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey
_______________________________________________ Lxc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lxc-users
