MySQL
Linux
Centos
Ubuntu
PHP
Windows
CSS3
帳號登入
MySQL
Linux
Ubuntu
CentOS
PHP
Windows
CSS3
編碼的世界 / 優質文選 /
感情
centos8 免密登錄
2022年6月25日
-
書箋
機器A登錄機器B(IP為192.168.120.112)
1)登錄A機器,輸入以下命令
ssh-keygen
按三次回車,生成私鑰和公鑰
2)A機器上,輸入以下命令
ssh-copy-id 192.168.120.112
再次輸入機器B的密碼,即可將公鑰傳給機器B。
驗證:
訪問機器B(ssh 192.168.120.112),A機器就可以免密訪問B機器。 參考:https://blog.csdn.net/weixin_39802123/article/details/119321248
熱門文章