Docker Centos安装Openssh
Docker Centos安装Openssh 环境介绍: Docker版本:1.5.0 镜像:docker.io:centos latest 操作步骤: 1、启动镜像 dockerrun-ticentos/bin/bash 2、安装passwd yuminstallpasswd-y 3、修改Centos root密码 #passwdChangingpasswordforuserroot. Newpassword:123456BADPASSWORD:Thepasswordisshorterthan8characters Retypenewpassword:123456passwd:allauthenticationtokensupdatedsuccessfully. 4、安装openssh yuminstallopenssh-server-y 5、生成公钥、私钥 [root@378ab88a06c8/]#ssh-keygen-trsa-f/etc/ssh/ssh_host_rsa_key Generatingpublic/privatersakeypair. Enterpassph...