Ubuntu18.10开启 ssh

第一步,安装服务

sudo apt install openssh-server

 第二步,开启root登录,并设置密码认证

1、编辑 /etc/ssh/sshd_config

PermitRootLogin yes

PasswordAuthentication yes

2、重启

service ssh restart

systemctl restart ssh

第三步,开机自动启动

systemctl enable ssh

猜你喜欢

转载自www.cnblogs.com/lzhd24/p/10407106.html