Recently, when I was learning Linux, I had some problems connecting virtual machine Linux with SecureCRT, and now I have a summary.
1, the first to configure the Linux configuration file, modify the static IP address and mask, keep the same network segment with the Local. Change the configuration file method as follows:
First step: Bridging. On the menu bar, settings, hardware-and network adapter, select Bridge mode on the right.
The second step: Bridge to connect to the Internet network card. On the menu bar edit, virtual network Editor, choose to Bridge to your own windows in the Internet network card (usually WiFi network or wired network)
Step three: Set up DHCP and restart the NIC.
Vi/etc/network/interfaces, open the file and edit the content into:
Auto Lo
Iface Lo inet Loopback
Auto Eth0
Iface eth0 inet DHCP
Address 192.168.1.141
Netmask 255.255.255.0
Gateway 192.168.1.1
Save exit. The command line then executes the/etc/init.d/networking restart restart the NIC
2. Install SSH
Open the Ubuntu terminal and enter:
sudo apt-get install openssh-server
SSH is started by default when the installation is complete. You can use the following command to see if a process is listening on port 22, that is, whether it is started:
netstat -nat | grep 22
3. Turn off the firewall
Use the following command to turn off the firewall, otherwise SECURECRT cannot connect:
sudo ufw disable
4. Connect to On-premises virtual machine Linux using SECURECRT
Click "Quick Connect", protocol Select "Ssh2", hostname fill in the IP address of the virtual machine (for example, 192.168.86.132 in this article), click Connect Connection.
Enter the user name, password, and tick save.
At this point, you can use SECURECRT to connect to the Linux system in the on-premises virtual machine.
5, FAQ: SecureCRT file is garbled
Options->session Options->terminal->appearance,character Select UTF-8.
A SECURECRT Connecting virtual machine Linux