###Date: 2017/9/17
###Author: SoaringLee
1. Inscription
I had nothing to do at home on weekends, thinking that I had installed SecureCRT before, I tried to use this software telnet to connect to the linux system in the virtual machine. CentOS was installed in the virtual machine VMvare Workstation before, and now I try to use the desktop linux system Ubuntu for testing.
2. Prepare materials
3. Steps (here, the ubuntu system is used as an example)
Among them, VMnet8 is related to the NAT method, which is not discussed in this article. Here VMnet1 is related to host-only. Set the ip of VMnet1 as follows, where "177" can be replaced with any non-conflicting subnet, and 1It cannot be changed. The 1 here represents the IP in the subnet assigned to the host, that is, after the virtual machine ping192.168.177.1 is completed, the host will be pinged.
Check the install SSH statement: "rpm -aq|grep openssh-server"
If it is not installed ( Ubuntu does not install ssh by default) openssh-server, you need to find other ways to install it, such as downloading rpm from the host, or installing the rpm package with iso (refer to other articles); root password, execute the "sudo passwd root" statement to modify the root password), switch root permissions to check the SSH service statement: if there is a process ID, it means that it has been started.
How to install ssh-server and ssh-client: sudo apt install ssh-server ssh-client
5. Open SecureCRT, set the login hostname (the IP address of the virtual machine ubuntu system), the ssh2 port is 22, and the Firewall is set to none. Then you can open and enter the account and password of the ubuntu system, and then you can log in successfully!
It is really cool to use SecureCRT to access and operate the linux system, and it is no longer limited by the small space of the virtual machine.
Note: The virtual machine can be interconnected with the host, but cannot use the virtual machine to access the Internet. This is a limitation of the host-only mode. To download the required installation package online, switch to NAT mode or bridge mode.
For the three network modes in the virtual machine, please refer to: http://www.linuxidc.com/Linux/2016-09/135521.htm
Reference: http://blog.csdn.net/lzx_bupt/article/details/6738186
http://www.cnblogs.com/xiazh/archive/2010/08/13/1798844.html