执行命令如下:
#安装时一直回车就行
ssh-keygen -t rsa
cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
执行结果:
用ssh登录:
ssh yuanke01
ssh 192.168.72.140
执行命令如下:
#安装时一直回车就行
ssh-keygen -t rsa
cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
执行结果:
用ssh登录:
ssh yuanke01
ssh 192.168.72.140