<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Greetings,<br><br>Whenever I try to ssh into an lxc container on Ubuntu 12.04, I get:<br><br>ssh_exchange_identification: Connection closed by remote host<br><br>using lxc-console to access the container, and checking the /var/log/auth.log file:<br><br>Sep 14 14:13:47 dnsmasq sshd[174]: fatal: Missing privilege separation directory: /var/run/sshd<br><br>Fair enough. If I use lxc-console to create /var/run/sshd manually, everything is fine. I restart the ssh server and can then ssh in without problem...<br><br>However, my goal is to build containers automatically using python scripts, so navigating the username/password login is too difficult.<br><br>Does anyone have any suggestions as to how I can create the /var/run/sshd directory inside an lxc container automatically?<br><br>Peter.<br><br><br><br> </div></body>
</html>