Key Logon Settings in Linux
Procedure for logging on to Linux with a key (using putty ):
1. Use putty to remotely log on to the Linux server, use puttygen to generate a key, save the generated key, and save the private key to copy and save the public key to the authorized_keys file on the Linux server.
2. Create a file:
Vi/root/. ssh/authorized_keys // create the file authorized_keys
Chmod 600/root/. ssh/authized_keys // Add Permissions
Chmod 700/root/. ssh // Add Permissions
3. Clear firewall settings:
Iptables-F // clear settings
Service iptables save // save settings
4. Disable seLinux.
Seteforce 0 // temporarily shut down and restart, and then the system becomes invalid
Vi/etc/seLinux/config // change seLinux = enforcing to seLinux = disabled // always disable
5. Edit the ssh configuration file:
Vi/etc/ssh/sshd_config // edit the ssh configuration file
PasswordAuthentication no // password-based login prohibited
PubkeyAuthentication yes // allow key-Based Access
6. Restart ssh
#/Etc/init. d/sshd reload
Service sshd restart
7. After the configuration is complete, only users with the key can log on to the Linux system.
PuTTY + Xming for Oracle image Installation
Some simple and practical modifications to the original settings when using PuTTY
How to Use PuTTY to implement remote logon control on Linux platform
How to connect PuTTY to Ubuntu in VMWare
VMware + Linux + PuTTY environment Configuration
Use PuTTY key authentication mechanism to remotely log on to Linux
This article permanently updates the link address: