ssh-add命令是把专用密钥添加到ssh-agent的高速缓存中,从而提高ssh的认证速度。该命令位置在/usr/bin/ssh-add。
ssh-add [-cDdLlXx] [-t life] [file ...]
ssh-add -s pkcs11
ssh-add -e pkcs11默认操作系统是不开启ssh-agent的,需要手动打开
> ssh-agent bashssh-agent的高速缓存中> ssh-add ~/.ssh/id_dsa> ssh-add -d ~/.ssh/id_dsa.pub> ssh-add -l如果出现
Could not open a connection to your authentication agent.错误则需要先执行ssh-agent bash然后再执行ssh-add ~/.ssh/id_dsa
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。