Today, it is easy to set the Xshell key for logon because the Chinese xshell is used. 1. click Tools ------ create user key generation Wizard (NewUserkeyWizard) (as shown in the figure) 2. then, remember to select RSA as the key type. actually, you can also select DSA. The two are actually different algorithms. (My RSA) experiment
Bring X shell key login today
It is easy to set the shell according to Chinese characters because the x shell is used.
1. click Tools ------ create User key generation Wizard (New User key Wizard) (see figure)
2. when this occurs, remember to select RSA as the key type. you can also select DSA as the key type. The two are actually different algorithms. (My RSA) experiment
3. select the key length !!! Generate a public key (as shown in the figure below ).
Here the name can be modified by myself. remember to enter the key. I have never been able to solve the logon problem. Forgot the password .......
4. the public key is generated in the next step.
The generated public key can be copied now or later ....
5. during these operations (I have been logging on through Xshell), I will set
The following are Machine operations
Directly create the. ssh directory under the/root directory (do not confuse the/root directory. after the root user logs on, run the/root command to worry about pwd)
# Mkdir. ssh
. Ssh is actually a hidden directory (. xxx is displayed before a directory file or a common file). it is actually a hidden directory. ls is invisible. remember to use ls-.
Switch to. ssh
# Cd. ssh
Create a file named here
Create a file
# Touch authorized_key
6. then vi! $ Paste the copied public key (! $ Don't forget)
OK, save and exit. still wq
7. remember to set the firewall and selinux
I temporarily disabled iptables .. However, it is still normal.
Clear the firewall configuration and save it.
# Iptables-F
#/Etc/init. d/iptables save
8. modify selinux (selinux is a security mechanism)
I directly modified the configuration file myself.
# Vi/etc/selinux/config
SELINUX = disabled
The status is as follows before modification: SELINUX = enforcing
Of course, it can also be temporarily disabled (it will be enabled after restart)
# Setenforce 0
After the change, remember to check the status (personal habits)
# Getenforce
Yes.
#/Usr/sbin/sestatus-v
Because I modified the configuration file display disabled
I remember that the temporary close display status is permissive.
9. the settings are basically complete. you can open a window to test it.
Fill in the previously set password. there is no problem with logon !!!!!
Other tools such as putty secureCRT can be set, and key logon is to log on more securely. server security is very important !!!