Use Xshell to generate a key, without a password to log on to linux, xshelllinux

Source: Internet
Author: User

Use Xshell to generate a key, without a password to log on to linux, xshelllinux

We usually use the command ssh user @ ip in Xshell to remotely log on to linux. This will prompt us that it is troublesome to enter the password. If we want to log on without a password, we can generate the corresponding key, and then put it on the remote server. The following is the specific operation.


Here we generate the public key and private key. we upload the Public Key id_ras_1024.pub to/home/wsuser/. ssh on the server. Note that the wsuser here is the user name I have logged on.

You can modify it according to your actual user name.

Then remotely log on to the target machine and execute the following command

Cat id_ras_1024.pub> authorized_keys


Next, create a session in Xshell,



After this configuration, you can directly log on to the remote machine.


In linux, SSH is set to use key verification for login. Xshell cannot be used for login. How can this problem be solved?

Vi/etc/ssh/ssd_config
PasswordAuthentication yes

Restart the sshd service.

Why cannot I set the password when xshell is used to connect to linux?

First, you need to confirm that you can use the password to authenticate the login. Find a linux Server
Can I log on to ssh? If I can, check whether your xshell configuration is as follows, right?

If not, check the configuration in the/etc/ssh/sshd_config file to see if password authentication is supported.
PasswordAuthentication yes
Restart the sshd service.



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.