SSH信任关系(machine A自动登录machin B)--实际上就是利用公钥登录。
machine A
#ssh-keygen -t rsa
#scp .ssh/id_rsa.pub to machin B
machin B
#cat id_rsa.pub >>.ssh/authorized_keys
#chmod 644 authorized_keys
Powered by: 博客园 Copyright © 2024 coffee Powered by .NET 8.0 on Kubernetes