生成秘钥
1 | ssh-keygen -t rsa -f ~/.ssh/id_rsa.xxxx -C "xxx@gmail.com" |
秘钥远程拷贝
1 | ssh-copy-id -i ~/.ssh/id_rsa.xxxx git@x.x.x.x |
指定秘钥测试
1 | ssh -i ~/.ssh/id_rsa.xxxx git@xxxx |
ssh多秘钥配置文件
1 | vim ~/.ssh/config |
1 | Host * |
技术笔记&记录生活点滴
生成秘钥
1 | ssh-keygen -t rsa -f ~/.ssh/id_rsa.xxxx -C "xxx@gmail.com" |
秘钥远程拷贝
1 | ssh-copy-id -i ~/.ssh/id_rsa.xxxx git@x.x.x.x |
指定秘钥测试
1 | ssh -i ~/.ssh/id_rsa.xxxx git@xxxx |
ssh多秘钥配置文件
1 | vim ~/.ssh/config |
1 | Host * |