SECURECRT connecting a Linux system in a virtual machine (Ubuntu)

Source: Internet
Author: User

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 Network Connectivity We want to choose the NAT mode, there is another way is to choose the bridge mode (here is not to explain, not recommended this way,    because each router dynamically assigned to the virtual machine IP address is not the same, Causes the host address to be changed each time the connection is made through SecureCRT .

  

  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 the 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 | grep , 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.

  

  And then enter LS to try, the friendly interface back

  PS: Then enjoy the fun of coding. --Please specify the source of the reprint.

SECURECRT connecting a Linux system in a virtual machine (Ubuntu)

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.