摘要:
经常在不同linux机器之间互相scp拷文件,每次总是要输入密码才可行。通过ssh-keygen生成公钥,在两台机器之间互相建立信任通道即可。假设本地机器client,远程机器为server。1. 生成rsa keygen[winter@client winter] $ ssh-keygen -b 1024 -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/home/winter/.ssh/id_rsa): Enter passphrase (empty for no passp 阅读全文