登陆centos,切换用户,切换到你要免密码登陆的用户,进入到家目录 2 创建钥匙, [xun@jzlinux ~]$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/xun/.ssh/id_rsa): /home/xun/.ssh/id_rsa already exists. Overwrite (y/n)? y Enter passphra…