Skip to content

openssh服务的配置(in Ubuntu)

shell
apt install -y openssh-server

sudo sed -i "s/.*PermitRootLogin prohibit-password.*/PermitRootLogin yes/g" /etc/ssh/sshd_config

sudo sed -i "s/#PasswordAuthentication no/PasswordAuthentication yes/g" /etc/ssh/sshd_config

service sshd restart
shell
systemctl start sshd
systemctl status sshd

service sshd status
service sshd start

Released under the MIT License.