http://www.linuxidc.com/Linux/2011-10/45523.htm
Install SSH service
Ubuntu does not install ssh service by default. If you connect ubuntu through ssh, you need to manually install ssh-server yourself. To determine whether to install the ssh service, you can use the following command:
www.linuxidc.com@linuxidc:~$ ssh localhost
ssh: connect to host localhost port 22: Connection refused
As shown above, it means that it has not been installed, and it can be installed through apt. The command is as follows:
www.linuxidc.com@linuxidc:~$ sudo apt-get install openssh-server
The system will automatically install, after the installation is complete, start the service first:
www.linuxidc.com@linuxidc:~$ sudo /etc/init After .d/ssh start
is started, you can run the following command to check whether the service is started correctly
www.linuxidc.com@linuxidc:~$ ps -e|grep ssh
6212 ? 00:00:00 sshd
as above means the startup is ok. Note that the default port of ssh is 22. You can change the port. After changing, stop and
then start. Change the configuration in /etc/ssh/sshd_config as shown below.
www.linuxidc.com@linuxidc:~$ vi /etc/ssh/sshd_config
# Package generated configuration file
# See the sshd(8) manpage for details
# What ports, IPs and protocols we listen for
Port 22
Finally, it should be connected It's time. Please see the following command:
www.linuxidc.com@linuxidc:~$ ssh [email protected]
Disconnect:
exit
Log in to the virtual machine through Putty
First make sure that the virtual machine and the host can ping each other, if not, follow up Work cannot be done. You can search for articles about virtual machine IP configuration on the Internet.
Next , open the Putty client, the following interface appears, and fill in the relevant parameters:
The IP address is the IP address of Ubuntu in the virtual machine.
Finally, click Open to enter Putty, enter the user name and password to log in.
Solve the problem of Chinese garbled characters After
logging in, use the ls command to view the root directory of the current user, and garbled characters appear in
Huaxiamian Studio:
http://huaxiamian.cc
Putty remotely logs in to VMware virtual machine Linux (Ubuntu)
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326866645&siteId=291194637
Recommended
Ranking