ssh key (generated using asymmetric public and private key encryption)
The private key is stored in a local ~ / .ssh directory (Linux systems)
public key can be made public, copied to the server's ~ / .ssh / authorized_keys file within
win environment generator mode: xshell -> Tools -> User Manager secret key -> Generate -> RSA -> ..
Linux environment generator mode: ssh-keygen -t rsa (typically the default option RSA) or ssh-keygen -t dsa
If the server ~ / .ssh / under no authorized_keys: Touch authorized_keys
win uploaded to the server public key: Copy the contents of the public key file to the authorized_keys
Linux to upload the public key to the server: copy the public key to the authorized_keys file contents in
the server private key is loaded: ssh-add ~ / .ssh / imooc_rsa (Linux needs only)
Modify ssh port:
vim / etc / ssh / sshd_config
Service sshd restart