我正在尝试git pull
从另一台通过 SSH 连接的计算机。每次我git pull
在此远程桌面上执行时,都会收到提示
Enter passphrase for key '/home/**me**/.ssh/id_rsa':
然而,当我 git pull
从同一位置直接在计算机上时,没有任何提示,并且 github 的 rsa 识别工作正常。
尝试:
我尝试id_rsa_2
从 ssh 控件创建第二个 RSA 密钥身份验证(重命名),但没有任何变化,它仍然要求原始密码(id_rsa
而不是id_rsa_2
)
当您从 DE 执行操作时git pull
,您的密钥存储在gnome-keyring
或中ssh-agent
。这会存储您的密码,并且不会每次都要求输入密码。
如果您使用 ssh 连接,则没有 DE 和 和ssh-agent
,因此没有地方存储密码短语,但您可以手动执行:
eval `ssh-agent` # start your agent to store your keys
ssh-add # asks for passphrase
# or ssh-add /path/to/your/key
ssh remote # will not ask for password again
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1982 次 |
最近记录: |