On Windows, an SSH client connection to Linux (Ubuntu) is used to better operate the Linux (Ubuntu) system in the virtual machine, but if the Linux (Ubuntu) system does not have an SSH server installed, it needs to be Install SSH server in (Ubuntu):
The installation method is as follows,
Input command: sudo apt-get install Openssh-server
Once the installation is successful, Linux (Ubuntu) can be accessed from Windows via SSH client.
SSH Client Connection process: This is a button on the SSH client interface, click on the need to enter the Linux IP (access mode in Linux to enter the ifconfig can know the IP address in Linux), in the input Linux username, direct connection, if successful You need to enter a password.
Auto Start (seems to have been run in the background by default after installation). \ Openssh-daemon You can also use Chkconfig to set up automatic startup. )
sudo vi ~/.BASHRC
Add to
/etc/init.d/ssh start
Modify Configuration
The Ssh-server configuration file is located in/Etc/ssh/sshd_config, where you can define the service port for SSH, the default port is 22, and you can define yourself as another port number, such as 222. Then restart the SSH service:
Sudo/etc/init.d/ssh restart