Key generation script
Ssh-keygen-b 1024-t rsa-N 123456-f yangcan generates a key pair with a password
-t type
-b size
-N password
-f name
-t type
Ssh-keygen-b 2048-t rsa-N ""-f cancan generates a key pair without a password
The way to remove the password
Openssl rsa-in ~ / .ssh/id_rsa-out ~ / .ssh/id_rsa_new
The way to change the password
Interactive password modification
Ssh-keygen-p-f id_rsa_new
Change the password on the command line
Ssh-keygen-p-P '123123'-N '123456'-f yangcan