2 ms·
Why would your private keys be lost? They're not transferred at any time. That's kind of the point of private keys in an asymmetrical encryption scheme. All
by Groxx 16y ago
Why would your private keys be lost? They're not transferred at any time. That's kind of the point of private keys in an asymmetrical encryption scheme.
All the agent forwarding exposes you to is someone in the middle routing requests they generate to authenticate against your computer, which is automatically responded to by your using an agent. If you don't use an agent, it'll ask for your password to use your private key.
edit: using a second agent on the middle computer without agent forwarding exposes your private key, because the agent on that computer needs to be able to respond to its outbound connections. Agent forwarding prevents this from being necessary. It's specifically built to prevent what you described as the danger.
- jsn 16y agoDuh. Where exactly did you get the idea that your private key would be lost? It's no longer private because the attacker can use your forwarded connection "to authenticate using the identities loaded into the agent". It's right there in ssh man page. Neither did I ever suggest using the second agent on the middle computer -- sure, it's obviously stupid. > It's specifically built to prevent what you described as the danger. You're wrong. See "man ssh", it's documented right there in "-A" option description.
- Groxx 16y agoBecause you mentioned: >your private key is not private anymore and: >the attacker who gets your key gets instant access to all other machines you access with that key. Which is wrong. They don't get your key. They get the ability to authenticate as you while you are connected, and nothing else.