# ssh

2024 年 10 月 14 日 星期一
25
1

# ssh

安装ssh

apt install openssh-server -y

开启ssh

systemctl start sshd

自启ssh

systemctl enable sshd

root登陆

修改sshd_config配置文件

vim /etc/ssh/sshd_config
PermitRootLogin yes    # 把#号去掉并后面prohibit-password改为yes
PasswordAuthentication yes # 把#号去掉

重启ssh

systemctl restart sshd

使用社交账号登录

  • Loading...
  • Loading...
  • Loading...
  • Loading...
  • Loading...