Putty Connection Centos Server
ps:client Connection Server A lot of methods, usually C/S mode.
Common ways to connect servers are:
1. user name and password login, security level is very low.
2. Modify the port ( Set the default port to a different port) to log on with a low security level.
3. set the complex password login, security level bottom.
4. Log in to the server with the secret key, the highest security level.
one, the following to introduce the use of Putty Login Centos server, the following are the specific operations:
Download Putty tool or CRT , personal habits use Putty , and then open Puttygen This tool
with Puttygen this tool to generate key pairs ( The key will be generated when the mouse is prompted to swipe to generate)
Put the generated public and private keys in a directory to save (if the private key is lost, there will be a server can not log on, remember!!) )
Second, the server-side operation is as follows:
1.yum-y Install Openssh-server openssh-clients
2. server-side generate secret key pair ssh-keygen-t RSA
3. after generating the secret key, there will be an . SSH directory, which has the public key (. Pub) and private key of the server, which makes it easy to jump to other servers.
4. Create the authorized_keys file in the . SSH directory and pour the client's public key into the The Authorized_keys file. The following is The public key of the client side.
5. authorizing /root/.ssh/ directory Permissions
chmod 700/root/.ssh/
6. Server modification /etc/ssh/sshd_config configuration file (backup first, then modify!!!) ), open key authentication!!
7. Restart the SSH Services service sshd restart or /etc/init.d/sshd restart< /c8>
Verify:
Client Login
Set Secret key
OK Operation completed ~~
Small New Enterprise Q 2851506992 Q604906005 tell:15013023312
Hengyang High-protection server rental , server hosting , large bandwidth rental of enclosures
Hengyang Machine Room export 500G , 30g--200g High Defense,
Open UDP Open the Port Ignore Cc/udp/syn Attack!
New configuration Dell R610 , eight-core 16 threads
Hunan IDC room high anti-height with Baidu segment &NBSP, Dell Brand Server
G Port Access ! Stable! High-protection! Second Solution! Real Defense!
Putty Connecting the CentOS server