前言
过程
img
、vmdk
、qcow2
vdi
。初始操作:
passwd
命令。安装SSH
sudo apt update -y
sudo apt install ssh
修改root账号登录权限。
nano /etc/ssh/sshd_config
#PermitRootLogin prohibit-password
的注释去掉,设置为yesPermitRootLogin yes
#PasswordAuthentication no
的注释去掉,并且设置为yesPasswordAuthentication yes
sudo service ssh start
sudo service ssh status
sudo update-rc.d ssh enable
reboot