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.