寰智博客

  1. 首页
  2. 技术教程
  3. 正文

Docker 下使用Centos 采坑

2022年1月10日 708点热度 0人点赞 0条评论

1.没有 ip addr 指令

 yum -y install initscripts

2.没有ssh 基本环境


yum install -y openssh-server
ssh-keygen -q -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N ''
ssh-keygen -q -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ''
ssh-keygen -t dsa -f /etc/ssh/ssh_host_ed25519_key -N ''
passwd root 
输入root 用户的密码
重复输入密码 
/usr/sbin/sshd -D &
标签: 暂无
最后更新:2022年1月12日

SudemQaQ

这个人很懒,什么都没留下

打赏 点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2025 blog.szhcloud.cn 寰智博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

苏ICP备16064625号-1

本站使用 又拍云 Logo 提供CDN加速/云存储服务