SecureCRT connects to the Linux system (Ubuntu) in the Virtual Machine)

Source: Internet
Author: User
I recently learned about Linux and read many Linux systems on the Internet that use SecureCRT to connect to a local Virtual Machine. Many of them need to set Linux configuration files, which is a little complicated. So I have to figure it out myself, post related operations to share them. SecureCRT is a terminal simulation program that supports SSH (SSH1 and SSH2). It is simply the software used to log on to UNIX or Linux server hosts in Windows. In this way, you do not have to go to the linux desktop, so that you can easily go to the command line

I recently learned about Linux and read many Linux systems on the Internet that use SecureCRT to connect to a local Virtual Machine. Many of them need to set Linux configuration files, which is a little complicated. So I have to figure it out myself, post related operations to share them.

SecureCRT is a terminal simulation program that supports SSH (SSH1 and SSH2). It is simply the software used to log on to UNIX or Linux server hosts in Windows. In this way, you do not have to go to the linux desktop, so you can perform operations under the command line more conveniently.

1. Environment

Host OS: Windows 8.1 64 bits

Virtual Machine OS: Ubuntu 15.04 64 bits

VMWare: 11.1.0

SecureCRT: 7.1.1.264 64 bits

2. configuration process

We need to select the NAT mode for VMware network connection. Another method is to select the bridging mode (this is not described here. This method is not recommended because the IP addresses allocated to the virtual machine dynamically by the vro each time are different, as a result, the host address needs to be changed every time you connect through SecureCRT ).

Go to Ubuntu, first view the IP configuration of the Ubuntu virtual machine, open the terminal (Ctrl + Alt + T), and run the ifconfig command to view the IP address information under Ubuntu.

We can see that the IP address is 192.168.172.168, and then we can set VMware Network Adapter VMnet8 in Windows, the IP address of VMnet8 must be the same as the default gateway and Virtual Machine (the IP address must be in the same network segment as the Virtual Machine IP address)

Set as shown in the following figure based on the information in Ubuntu.

The preliminary work has been completed. Next, install the SSH service in Ubuntu. Open the terminal and check whether the SSH service has been installed.

Enter the command: ssh username @ localhost. If ssh: connect to host localhost port 22: Connection refused appears

Generally, SSH is not installed. In this case, you need to install SSH.

(1) Install SSH

Open the Ubuntu terminal and enter:

Sudo apt-get install openssh-server

Ssh is started by default after installation. You can run the following command to check whether a process is listening on port 22, that is, whether it has been started:

Netstat-nat | grep 22

If the connection fails, we need to disable the firewall.

(2) disable the Firewall

Sudo ufw disable

After the firewall is disabled, netstat-nat | grep 22 will show the SSH service.

3. SecureCRT connecting to Ubuntu

Open the SecureCRT software and configure it. In ProtoCol mode, select SSH2, Port as 22, HostName as 192.168.172.168 (which is the IP address of our Ubuntu), and UserName as the login account of our Ubuntu.

PassWord is the login PassWord of Ubuntu.

Then it's time to witness the miracle ~~~

Enter the common command: ls

The connection is successful.

4. FAQs

We found that the data returned during the above ls is garbled. Because the Chinese characters of SecureCRT are garbled

Solution Options-> Session Options-> Terminal-> Appearance, Character select UTF-8.

Enter ls and try again. The friendly interface is back.

Using SecureCRT to realize two-way communication between WIN7 and Linux and solve the problem of mutual File Transfer http://www.linuxidc.com/Linux/2014-08/105412.htm

How to log on to Ubuntu http://www.linuxidc.com/Linux/2011-03/33024p4.htm via SSH using SecureCRT6.6.2

SecureCRT connection Ubuntu http://www.linuxidc.com/Linux/2013-06/85824.htm

Ubuntu 12.04 + Virtual Machine VMware 9 + Secure CRT + EditPlus local C ++ Development Environment build http://www.linuxidc.com/Linux/2013-05/84820.htm

Transfer File http://www.linuxidc.com/Linux/2014-08/105413.htm between Linux and Windows using SecureCRT

Install SecureCRT 14.10 http://www.linuxidc.com/Linux/2014-10/108709.htm in Ubuntu 7.3

SecureCRT: Click here
SecureCRT: Click here

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-05/117048.htm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.