Enter the target server
1. Enter the server that requires ** * to be logged in without secret (secret server B)
2, can be generated by using ssh-keygen (three times enter) command
3, throughssh-copy-id
Command Settings. The last parameter is we **to
** Server IP address for keyless login (Server A
).
4, the test is successful! Log in to server A
Example: SSH [email protected] "ls /root/" template: SSH server B account @server Bip "ls /root/"Copy the code