Ubuntu开启SSH远程登录

1、安装Open-sshserver

apt install openssh-server -y

2、编辑sshd_config

1 vim /etc/ssh/sshd_config
2 修改为下面设置:
3 PermitRootLogin:yes #允许root登录
4 PasswordAuthentication :yes  #允许密码验证登录

3、设置sshserver为开机自启动

systemctl enable ssh

 

posted @ 2025-04-11 15:28  Fēngwèi  阅读(21)  评论(0)    收藏  举报