In the CentOS system, you need to log in when you log in to SSH. In fact, as long as you make a simple setup, you can implement SSH without password login. Do you want to know how to set it? Let's learn how CentOS implements SSH passwordless login with Xiaobian.
a, the environment configuration
1, the server: CentOS release 5.3 IP: 222.73.115.198
2, kefuduan: CentOS release 5.8 IP: 192.168. 4.244
Second, configure SSH passwordless login requires 3 steps:
1, generate public and private keys
2, import the public key to the authentication file, change the permissions < Br>
3, test
Third, client configuration
1, generate private and public keys on the client;
# ssh-keygen
[root@jw02 ~]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa) : #回车(代表上登录No password)
Enter passphrase (empty for no passphrase): #回车
Enter same passphrase again: #回车
Your identification Has been saved in /root/.ssh/id_rsa. #代表私钥
Your public key has been saved in /root/.ssh/id_rsa.pub. #代表公键
The Key fingerprin t is:
04:45:0b:47:10:92:0c:b2:b9:d7:11:5b:49:05:e4:d9 root@jw02
[ Root@jw02 ~]# ls ~/.ssh/
id_rsa id_rsa.pub known_hosts
2. By default, two files are generated in the ~/.ssh or /root/.ssh/directory:
The public key is: id_rsa.pub
The private key is: id_rsa
Previous12Next page Total 2 pages
The Ubuntu system cannot correctly type using the Pinyin input method. The words displayed on the in
Linux users are no strangers to Supervisor Supervisor. We can manage all file files
I believe many people know what system files are, but few people know what the text stream is. In fa
TWiki is a versatile wiki program that needs to run in a Perl environment. On Linux systems, TWiki p
Amazon Amazon AWS Access Key Creation Tutorial
How Linux expands the number of file openers
How does Linux distinguish whether a computer has a USB 3.0 interface
How to use the tail command guide under Linux
Linux how to use the locate command to find data
How to share files between Ubuntu and Windows
Tips for setting up IPv4 in Ubuntu system
What should I do if I get an error when installing LDAP on Linux under Linux?
Linux installation using the compression tool 7-zip steps
Linux installation of MariaDB database through Yum
How to use commands to manage files in Linux
After the Linux boot, the terminal prompts -bash-2.05b$ What should I do?
Changing the storage location of the temporary folder Lets you surf the Internet faster
Win8 computer blue screen code 0x0000007e how to solve?
Microsoft Windows system version build number is about to break through 10000 mark
Easily help Windows 7 retrieve the taskbar "quick start"
Windows 10 photo album application first exposure Photo enhancements thought amazing
Win7 shortcut key switch input method failure?
How to deal with the wireless network connection of Win7 system?
Linux/Unix operating system is in the desktop control of the intranet
Win10 mobile phone preview version 10166 fast version starts to push
Win7 system using the registry to clear the stubborn virus settings method graphic tutorial