Home
Sign Up
Sign In
V2EX
›
macOS
为啥现在每次用 iterm2 登陆 ssh 都要让我输入 key 的密码
xdz0611
·
Dec 25, 2016
· 2917 views
This topic created in 3622 days ago, the information mentioned may be changed or developed.
我现在需要手动添加到 keychain 中,也就是 ssh-add -k /path/to/key 这样子才行.
但是我记得以前从来不需要啊,我也不记得什么时候保存到 keychain 中的,最近升级到 10.12.2 之后,每次都要让输入密码呢
keychain
key
密码
iTerm2
1 replies
•
2016-12-25 18:04:15 +08:00
ericguo
Dec 25, 2016
3
1
https://www.reddit.com/r/osx/comments/52zn5r/difficulties_with_sshagent_in_macos_sierra/
vi ~/.ssh/config
Host *
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa
IdentityFile ~/.ssh/id_25519
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
4345 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 48ms ·
UTC 08:40
·
PVG 16:40
·
LAX 00:40
·
JFK 03:40
♥ Do have faith in what you're doing.
❯