[lxc-users] why does ssh + lxc hang? (used to work)

Tomasz Chmielewski mangoo at wpkg.org
Sun Feb 24 12:33:49 UTC 2019


This works (executed on a host):

host# lxc exec container -- date
Sun Feb 24 12:25:21 UTC 2019
host#

This however hangs and doesn't return (executed from a remote system, 
i.e. your laptop or a different server):

laptop$ ssh root at host "export PATH=$PATH:/snap/bin ; lxc exec container 
-- date"
Sun Feb 24 12:28:04 UTC 2019
(...command does not return...)

Or a direct path to lxc binary - also hangs:

laptop$ ssh root at host "/snap/bin/lxc exec container -- date"
Sun Feb 24 12:29:54 UTC 2019
(...command does not return...)


Of course a simple "date" execution via ssh on the host does not hang:

laptop$ ssh root at host date
Sun Feb 24 12:31:33 UTC 2019
laptop$


Why do commands executed via ssh and lxc hang? It used to work some 1-2 
months ago, not sure with which lxd version it regressed like this.


Tomasz Chmielewski


More information about the lxc-users mailing list