zjffun blog

Ubuntu SSH 账号密码登录

更新于 写于

bash
# install
apt install openssh-server

# config
cp /etc/ssh/sshd_config /etc/ssh/sshd_config-bak
echo "PermitRootLogin yes" > /etc/ssh/sshd_config

# start
sudo service ssh start
# OR
# sudo /etc/init.d/ssh start
# OR for systemd based Ubuntu Linux 16.04 LTS or above server:
# sudo systemctl start ssh