收藏文章 楼主

linux centos ssh 无法登录 ubuntu/centos 重装sshd

版块:linux   类型:普通   作者:小绿叶技术博客   查看:540   回复:0   获赞:0   时间:2021-10-15 10:41:22

linux 重装sshd

yum -y remove openssh openssh-server openssh-clients

yum -y install openssh openssh-server openssh-clients



cat /etc/ssh/sshd_config | grep PermitRootLogin                                     # 查看远程登录是否开启  yes

cat -n /etc/ssh/sshd_config | grep PasswordAuthentication                      # 远程密码登录   yes

将 #PermitEmptyPasswords no                                                                  #  加# 好注释掉

systemctl restart sshd





#-------- ubuntu 重装sshd -------#

sudo apt-get remove openssh-server  openssh-client --purge -y

sudo apt-get autoremove

sudo apt-get autoclean

sudo apt-get update

sudo apt-get install openssh-server openssh-client

提供企业建站服务,免费网防系统,提交信息登录 http://yundun.ddoss.cn 邮箱: proposal@ddoss.cn 
回复列表
默认   热门   正序   倒序

回复:linux centos ssh 无法登录 ubuntu/centos 重装sshd

头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息