On Wed, Dec 16, 2020 at 07:21:34PM +0800, Xu Xijian wrote:
Signed-off-by: Xu Xijian hdxuxijian@163.com
container/update-os-docker/sbin/setup | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/container/update-os-docker/sbin/setup b/container/update-os-docker/sbin/setup index a38e2df..e054a29 100755 --- a/container/update-os-docker/sbin/setup +++ b/container/update-os-docker/sbin/setup @@ -4,3 +4,9 @@
yum update -y yum install -y --skip-broken "$@"
+command -v sshd || yum install -y openssh-server +echo -e "y\n" | ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key +echo -e "y\n" | ssh-keygen -t rsa -f /etc/ssh/ssh_host_ecdsa_key +echo -e "y\n" | ssh-keygen -t rsa -f /etc/ssh/ssh_host_ed25519_key
delete extra blankline. Thanks, Liushaofei
-- 2.23.0