当前位置:网站首页>SSH password free login

SSH password free login

2022-04-22 06:24:00 bglmmz

1. First, the client switches to execution SSH User name at the time of operation , Such as :tester

2. On the client tester Generate rsa Public private key , All parameters in the generation process can be defaulted ( Directly enter ), After generation, it will be in the user's root directory (/home/tester/) Generate a “.ssh” Folder .

ssh-keygen -t rsa

3. Public key copy To a remote machine , such , stay tester user SSH When connecting to a remote machine , You don't have to enter the user password .

ssh-copy-id -i ~/.ssh/id_rsa.pub tester@remote_host

版权声明
本文为[bglmmz]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220548530857.html