<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:56.7pt 42.5pt 56.7pt 85.05pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello Paulo,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">The fact that sshd_config has root login disabled is a bug, so we are going to fix that. There is already code in template’s post-install script to change PermitRootLogin, but it is not working. Thank you for reporting the problem!<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">The easiest way to make containers with the needed configuration is to create your own template, see
<a href="https://docs.virtuozzo.com/virtuozzo_7_users_guide/advanced-tasks/creating-customized-containers.html#using-customized-ez-templates">
https://docs.virtuozzo.com/virtuozzo_7_users_guide/advanced-tasks/creating-customized-containers.html#using-customized-ez-templates</a>. Just copy the default config and add your changes into the post-install script.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">By the way, with Virtuozzo license you can contact support <a href="https://www.virtuozzo.com/support/">
https://www.virtuozzo.com/support/</a> <o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><b>From:</b> users-bounces@openvz.org &lt;users-bounces@openvz.org&gt;
<b>On Behalf Of </b>Paulo Coghi - Coghi IT<br>
<b>Sent:</b> Wednesday, July 4, 2018 6:11 PM<br>
<b>To:</b> users@openvz.org<br>
<b>Subject:</b> [Users] Ubuntu 18.04 default SSH config<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello everyone,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">My name is Paulo Coghi and I am really happy to join the OpenVZ list. I am using OpenVZ since 2013 and happily subscribed to Virtuozzo (licensed version) this year. The dream of our company always was use Virtuozzo
 Storage, and this year this dream comes true.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">About Ubuntu 18.04 default ssh configuration:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I installed Ubuntu 18.04 template through &quot;yum install ubuntu-18.04-x86_64-ez.noarch&quot; and everything is running fine, with exception to the SSH server.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">To be able to login into my container using ssh, first I have to change the default ssh configuration in &quot;/etc/ssh/sshd_config&quot;, changing the directive &quot;PermitRootLogin&quot; to &quot;yes&quot;, instead of the default &quot;prohibit-password&quot;.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">An alternative solution is to create the container with the public ssh key of container's owner, but I can't find this option in Virtuozzo Automator. Is there an option in Virtuozzo CLI to create a container
 with a pre-installed public ssh key?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Naturally changing the specific line on the original template solves the problem, but it really seems more secure to stay with this &quot;default&quot; and to use ssh authentication through keys.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Thanks!<br>
<br>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Paulo Coghi<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
</body>
</html>