Docker SSH

  • A+
所属分类:Docker

容器系统:CentOS 7

1.安装依赖包

yum install -y vim wget openssh-clients openssh-server rsync passwd openssl

3.设置密码

 

2.生成密钥

ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key

ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key

ssh-keygen -t rsa -f /etc/ssh/ssh_host_ed25519_key

3.启动ssh服务

/usr/sbin/sshd

安装成功

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: