ssh 免密码登陆

  1. linux Server 运行下面命令:
ssh-keygen -t rsa -P ''

例如:

[root@vcentos .ssh]# ssh-keygen -t rsa -P ''
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Your identification has been saved in /root/.ssh/id_rsa.
Your public key …
more ...

-bash: ssh: command not found的解决办法

最小化安装的问题.

more ...