`

SSH命令

 
阅读更多
 

ssh-add命令是把专用密钥添加到ssh-agent的高速缓存中

 

1、打开ssh-agent

     eval "$(ssh-agent -s)"

 

2、把专用密钥添加到 ssh-agent 的高速缓存中

    ssh-add ~/.ssh/id_rsa

3、ssh-add -l

    -l:显示ssh-agent中的密钥

 

4、ssh-add -L

 

    -L:显示ssh-agent中的公钥

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics