Github deploy key使用
服务器部署 deploy ssh key
ssh-keygen -f ~/.ssh/deploy // 生成key
直接执行 ssh-add 报错
Could not open a connection to your authentication agent
ssh-agent bash // 执行后重新
ssh-add ~/.ssh/deploy // 添加认证
ssh-add -l // 查询认证
问题
key 仅保存一次,不能存储至全局
修改
vim /etc/ssh/ssh_config
// 增加
IdentityFile ~/.ssh/deploy
本作品采用《CC 协议》,转载必须注明作者和本文链接