SECURECRT connecting a Linux system in a virtual machine

Source: Internet
Author: User

[Date: 2015-05-05] Source: Linux Community xuliangxing [Font: Big Small]

Recently in the study of Linux, see the online many securecrt connected to the local virtual machine in the Linux system, many of them need to set up the Linux configuration file, a bit cumbersome, so I groped for a bit, the relevant operations posted out to share.

SECURECRT is a terminal emulator that supports SSH (SSH1 and SSH2), simply the software that logs on to UNIX or Linux server hosts under Windows. This does not have to go to the Linux desktop, it is more convenient to operate under the command line.

1. Environment

Host Os:windows 8.1 64bits

Virtual Machine Os:ubuntu 15.04 64bits

vmware:11.1.0

securecrt:7.1.1.264 64bits

2. Configuration process

VMware's network connection we want to choose the NAT mode, there is another way is to choose the bridge mode (here does not explain, not recommended this way, because each router dynamically assigned to the virtual machine's IP address is not the same, resulting in every time through the SECURECRT connection to the host address to change).

Go to Ubuntu, first check the Ubuntu virtual machine IP configuration, open terminal (ctrl+alt+t), through the ifconfig command view, you can see the IP address information under Ubuntu.

As you can see, the IP address is 192.168.172.168, and then you can set up VMware Network Adapter VMnet8 under Windows, where the IP address of VMnet8 is the same as the default gateway and virtual Confidential ( Keep and virtual machine IP remain on the same network segment)

According to the information under Ubuntu, the settings are as shown.

Pre-work has been done, the next step is to install the SSH service under Ubuntu, open the terminal, check first, whether the SSH service has been installed.

Input command: SSH [email protected]. If there is a ssh:connect to host localhost Port 22:connection refused

SSH is generally not installed, this time need to install SSH.

(1) Installing 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

If you can't connect, we need to shut down the firewall.

(2) Shut down the firewall

sudo ufw disable

After shutting down the firewall, Netstat-nat | With grep 221, you can see the SSH service.

3, SecureCRT connect Ubuntu

Open the SECURECRT software and configure it. Protocol mode is selected as Ssh2,port for 22,hostname for 192.168.172.168 (which is our Ubuntu IP address), username for our Ubuntu login account.

Password for our Ubuntu login password

And then it's time to witness the miracle.

We randomly enter common commands: LS

Indicates that the connection is successful.

4. Frequently Asked Questions

When you find the above LS, the returned data is garbled. Because SECURECRT Chinese display garbled

Solution options->session Options->terminal->appearance,character Select UTF-8.

Then enter LS to try, the friendly interface back.

Using SECURECRT to realize the problem of bidirectional communication between WIN7 and Linux and to solve the problem of file mutual transmission http://www.linuxidc.com/Linux/2014-08/105412.htm

How to use SecureCRT6.6.2 ssh to login ubuntu system http://www.linuxidc.com/Linux/2011-03/33024p4.htm

SecureCRT Connecting 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

Use SECURECRT to transfer files between Linux and Windows http://www.linuxidc.com/Linux/2014-08/105413.htm

Ubuntu 14.10 Installation SECURECRT 7.3 http://www.linuxidc.com/Linux/2014-10/108709.htm

SECURECRT connecting a Linux system in a virtual machine

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.