Linux/Windows RSA Key 常用指令

1
2
3
$ ssh-keygen -t rsa -C "youraccount@com.tw" #建立金鑰
$ ssh-add ~/.ssh/id_rsa #加入金鑰
$ ssh-add -l #列出金鑰清單

Error狀況: Could not open a connection to your authentication agent

1
2
$ ssh-agent bash
$ ssh-add

Permissions 0644 for ‘/c/Users/HelloWorld/.ssh/id_rsa’ are too open.

1
2
$ cd ~/.ssh
$ chmod 700 id_rsa
作者

andyyou(YOU,ZONGYAN)

發表於

2011-11-16

更新於

2023-12-05

許可協議