Linux virtual machine related settings

Set the root user password

sudo passwd root

Password: <--- Enter your current user password
Enter new UNIX password: <--- New Root user password
Retype new UNIX password: <--- Repeat the new Root user password

 

Allow LAN access: use bridge mode

 

Install apt-get install openssh-server

Allow root user remote access

install apt-get install vim-gtk

vi /etc/ssh/sshd_config

Change the PermitRootLogin value to yes

service sshd restart /etc/init.d/sshd restart

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326116904&siteId=291194637