Download putty
Address: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
Select Putty.zip 32-bit download
After installation, add the IP that you want to remote
Saved sessions here fill in your virtual machine name (optional)
Set some properties
Window:
Lines of Scrollback: number of rows tumbling up and down
Appearance: Setting font properties
Translation: Character encoding
After modification, press session--"Save-->open
You can enter the root username and password on the line:
!!! In putty, we directly right-click to copy
Xshell download directly on the Baidu load normal installation can
Add IP Sessions after installation
New session
Here's what you need to be aware of:
Click User Name Authentication: Enter the username and password to connect directly
In Xshell we can open multiple windows!!
Key Authentication
A pair of encrypted strings, one encrypted and one decrypted.
Computer (client-side private key) server to place public key
First, Putty key authentication
Locate Puttygen.exe File
Click Generate to generate the public key
The top box is the public key
My password (123456)
and then press Save private key
Save Public key
Save Address Custom (d/:P utty file)
Open command:
Command:
. mkdir/root/.ssh
. Chomod 700/root/.ssh
. Vi/root/.ssh/authorized-keys
Copy the copied public key string into this file
Authorized_keys (is underlined) Authorized_keys must not be wrong
Next: Turn off Firewall (selinux)
Temporarily close command: Setenforce 0
For the private key operation:
Open Putty-> Select our server (virtual machine)-"press Load->ssh (in the left option bar)-" Auth
Locate the address where we just saved the private key:
Then press session-"Save->open
Final success
Xshell Key authentication:
Open the new User Key Generation Wizard, xshell-> tools (leave default)
Next and Next
Generate Public key
Then:
. Vi/root/.ssh/authorized-keys
Copy the copied public key string into this file
Authorized_keys (is underlined) Authorized_keys must not be wrong
: Wq Save Exit
Next Click Open (red box)
Enter post-select Action Name-"Properties-" User authentication
Select by Red Box
Final success
Note: If you have not previously worked on the key, you must first 1. Create a directory-"Modify permissions 700-" edit this file (cannot write the wrong name)
Then edit the file by pressing the I key before pasting
Putty, Xshell Connect Linux and Putty, Xshell key authentication