blank的编程之路


  • 首页

  • 归档

  • 搜索
consul atomikos mybatisplus druid nexus nas named bind mysqldump acme.sh Dockerfile rsync keepalived swarm kibana ubuntu linux scp bugfix https ssl certbot curl gogs adminer harbor yum portainer python kubernetes idea java springboot maven docker-compose redis nginx mysql brew git chocolatey jenkins elasticsearch docker haproxy rabbitmq centos

为centos7 开启ROOT远程链接 及 重置ROOT密码

发表于 2019-04-03 | 分类于 运维 | 0 | 阅读次数 297

允许root用户远程登陆

# vim /etc/ssh/sshd_config

修改参数为
PermitRootLogin yes
PasswordAuthentication yes
使用之前的非ROOT账号密码链接服务器
临时切换ROOT

sudo su

重置 ROOT 密码

passwd root

重启 sshd 服务使配置修改生效

systemctl restart sshd

可以使用root/刚设置的密码 链接服务器登陆了

  • 本文作者: blank
  • 本文链接: https://blankhang.com/2019/04/03/1554278577855
  • 版权声明: 本博客所有文章除特别声明外,均采用CC BY-NC-SA 3.0 许可协议。转载请注明出处!
# consul # atomikos # mybatisplus # druid # nexus # nas # named # bind # mysqldump # acme.sh # Dockerfile # rsync # keepalived # swarm # kibana # ubuntu # linux # scp # bugfix # https # ssl # certbot # curl # gogs # adminer # harbor # yum # portainer # python # kubernetes # idea # java # springboot # maven # docker-compose # redis # nginx # mysql # brew # git # chocolatey # jenkins # elasticsearch # docker # haproxy # rabbitmq # centos
yum 安装 redis 6
windows 包管理器 Chocolatey
© 2021 blank
Everything is energy and everything has a frequency