1234567
ssh-keygen -t rsa# Linux在~/.ssh目录下,Windows在C盘根目录# 目录结构如下-- .ssh |-- id_rsa |-- id_rsa.pub
12
# 将公钥传到服务器,追加到~/.ssh/authorized_keys文件里cat id_dsa.pub >> ~/.ssh/authorized_keys