can telnet to CentOS 7 using the Putty tool
1, Download putty
https://www.putty.org/
, 2, after downloading the installation, open the Putty software
3, fill in the hostname above the CentOS IP address you want to login, click Open, you can go to the login interface
4, you can also customize a name on the saved sessions to differentiate the host. Save by clicking Save.
Double-click your custom name later, or you can go to the login screen.
, 5, you will see a black-white screen, enter the user name and password can log on to the CentOS. It is the same operation in this area and on the machine.
Telnet to Linux using the key authentication mechanism
1, first use Puttygen to generate the key pair
2. Toggle the mouse back and forth to quickly generate a key pair.
3, click the Save Private Key button, select a path to store the file and define the name, click "Save".
4, copy the public key to Linux
[Email protected] ~]# MKDIR/ROOT/.SSH
\ Create Directory
[Email protected] ~]# chmod 700/root/.ssh
\ Change permissions for this directory
[Email protected] ~]# Vim/root/.ssh/authorized_keys
\ Paste the public key contents into this file, press ESC, Output: Wq and enter.
5, turn off SELinux
[Email protected] ~]# Setenforce 0
\ can only temporarily close SELinux, the next reboot will be turned on again.
[Email protected] ~]# Vim/etc/selinux/config
\ edit this file, find selinux=enforcing, and change to selinux=disable.
Press ESC, enter: Wq Enter, restart the system. You can permanently close the selinux!.
6, set Putty to login via key
Open Putty.exe Click on your saved session, then click on the right side of the "Load", on the left, click on the "SSH" front of the + and then select "Auth", see the right "Private key file for authentication:" Below The bar is currently empty, click "Browse", find the private key we just saved, click "Open". At this point the box has the address of the private key, and of course you can edit the path yourself. Then go back to the left, click on the top "Session", and then click "Save" on the right.
7, double-click your custom name, you can go to the login screen.
Precautions :
1,/ROOT/.SSH directory permission is 700;
2,selinux to close;
3,/root/.ssh/authorized_keys file name to write to.
4, the public key content to paste complete.
Use PUTTYF to log in to the Linux system using password and key methods