Use SecureCRT to connect to the Linux system (Ubuntu) and securecrtubuntu in the Virtual Machine

Source: Internet
Author: User

Use SecureCRT to connect to the Linux system (Ubuntu) and securecrtubuntu in the Virtual Machine

When I suddenly practiced linux Command Line today, I wanted to contact linux Command Line in window. Once dudu finds a good tool (SecureCRT -- meaning secure), it is to use SSH to connect to the linux host. We recommend that you use it. After all, there is a little piece of music in the window, and the next little movie will practice the linux Command Line at the same time !~ Thanks to the powerful VMware11

After finding a lot of blogs, you can still succeed without simply following the steps ............ Xi! After all, I am just a learner!

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.

0. 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

1. Check whether the bridging of your host window is disabled,

In some special cases, the machine is disabled ....

2. Go to Ubuntu, check 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. Return to window win + R --> cmd -- ipcong to check the ip address of your computer. ping each other under ipconfig on Windows and ifconfig on Ubuntu, if our environment is the same, there should be no problem. In some tutorials, I changed the connection mode of the virtual machine to NAT, but I changed the ping mode to different ones, so I changed the Bridge Mode (directly connect to the physical network ). Ping each other before you can proceed.

3. Install SSH. Generally, the machine is not installed.

Test SSH localhost on ssh Ubuntu

The following message is displayed: ssh: connect to host localhost port 22: Connection refused. It indicates that SSH is not installed on your machine.

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

  

This is what I showed here. I thought it was a failure. Not yet!

If the problem persists, try to disable the firewall.

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

Disable the firewall sudo ufw disable

This is not the case on my machine ~

So far, the job on ubuntu has been completed.

Create a link

  

 

 

Of course, you may not know what your account is ~ Haha, I don't know... Command ===$ users to view your user name.

Log on ....................

  

After successful logon, it is different from my interface, so you should pay attention to it. There are two or three steps/

If prompted

The server has disconnected with an error. Server message reads:
A protocol error occurred. Change of username or service not allowed: (root, ssh-connection)-> (Ubuntu64, ssh-connection)

Run

This is because the username in the SecureCRT settings does not match the username you entered during login. You can change it here:

Option-> session option-> connection-> SSH2-> User Name


After the modification, the logon is normal. In this way, the ROOT login of the server can be disabled (for security ).

The default value is root, which is changed to your user name.

  

If the command line contains garbled characters, the Chinese characters of SecureCRT are garbled.

Options-> session options-> terminal-> appearance, select UTF-8 in character encoding

  

Just hit the command line .... Worth it

Reference http://www.linuxidc.com/Linux/2015-05/117048.htm

Http://www.linuxidc.com/Linux/2016-03/129007.htm

Http://blog.csdn.net/zxx2403/article/details/46959047

 

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.