SecureCRT7.0 log on to the Ubuntu12.04 server under Vmware through the SSH service

Source: Internet
Author: User
SecureCRT7.0 logs on to the Ubuntu12.04 server under Vmware through the SSH service. First, in order to avoid switching back and forth between the host and the virtual machine, you can achieve remote login through SSH, which is just a terminal, exercise yourself to use the VI editor and adapt to the non-Window environment. It took about one afternoon today. Although there are still some flaws, it can meet the needs of use, and the rest will be optimized later, the following describes the problems encountered. 1. You have enabled the SSH service. 2.

SecureCRT 7.0 log on to the Ubuntu 12.04 server under Vmware through the SSH service

First, in order to avoid switching back and forth between the host and virtual machine; second, remote login can be achieved through SSH, just a terminal, exercise yourself using the VI editor and adapt to the windowless environment, it took about one afternoon. Although there were still some flaws in the end, they could already meet the needs of use, and the rest were being optimized. Let's share the problems we encountered below.

1. You have enabled the SSH service.

2. To avoid repeating the same mistakes, read the configuration file/etc/ssh/sshd_config first.

3. modify the configuration file as needed. I will use root logon in Secure CRT,

You can use the default port 22 or define it by yourself. The default port is used here.

PermitRootLogin yes // default
RSAAuthentication yes // use the RSA Encryption Algorithm
PubkeyAuthentication yes // use public key for authentication
AuthorizedKeysFile. ssh/authorized_keys // files stored in the user's main directory,
PasswordAuthentication no // password verification prohibited Login

Save and exit.

4. Set Vmwre as a bridge between the host and ubuntu, which is in the same network segment. The NAT connection fails, and the connection between different network segments fails.

5. SecureCRT: Set ssh Public Key Authentication for linux Login

Generate the public key. Note that when generating the public key, select the RSA type and upload it to the server, that is, linux. In this case, I did not upload it successfully, so I copied it myself.

6. Here I use ROOT to log on, so the public key is sent to its home directory, that is,/root /. ssh and rename it. Change the name ssh1 to authorized_keys ssh2 to authorized_keys2 as needed. It is useless under/root. create the ssh directory by yourself. If you log on to another user, put it in the directory of the corresponding user:/home/XXX /. ssh

7. Configure CRT logon,

The host name is the Host IP address, and the user is the user you set. Then connect.

8, if the login, Chinese characters garbled, in the global settings, set the font for the UTF-8, the problem will be exposed.

Logon successful

Refer:

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

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

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.