1. cd .ssh
2. ssh-keygen -t rsa
3.Enter file in which to save the key (/home/python/.ssh/id_rsa): (回车,确认保存位置)
4. 输入密码
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
5.成功,多出两个文件 id_rsa id_rsa.pub 一公一私
6.查看公密钥: cat id_rsa.pub