1) After installing Ubuntu, enter the following command to get root privileges:
sudo passwd
2) changes to Ubuntu under Source:
sudo gedit/etc/apt/sources.list
Find a source that is also used to replace the original content in/etc/apt/sources.list
To perform an update:
sudo apt-get update
3) Install SSH for remote login
Ssh-client: Native server as client via SSH link remote
Ssh-server: As a remote server, this machine can be linked by a client
sudo apt-get install ssh-client
Note The above command may have the problem "dependent: openssh-client (= 1:6.6p1-2ubuntu1)"
Use this command to resolve: sudo apt-get install ssh-client= 1:6.6p1-2ubuntu1
Next install sudo apt-get install Ssh-server
4) Check that the SSH service is started
Ps-e |grep SSH
Showing sshd indicates successful installation
5) Update vim
sudo apt-get remove vim
sudo apt-get install vim
5) Modify the/etc/ssh/sshd_config file so that the remote connection is allowed by the machine
# Authentication:
Logingracetime 120
Permitrootlogin Yes
Strictmodes Yes
SSH remote connection to Ubuntu encountered problems