Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm actually surprised OpenSSH doesn't yet print a large warning when you go to connect and forwarding is enabled.

agent forwarding is not enabled by default, so if you've turned it on, you should know what you're doing. it should only be enabled in ~/.ssh/config per-host, for hosts that you trust.

you should also enable confirmation in ssh-agent so that whenever a key is used, you must manually confirm it. it will prevent attacks like this where another user on a compromised machine will use your agent to login to another machine.

i wrote about doing this on osx, but it works similarly on any other platform - http://jcs.org/macssh



Nice approach, modulo the usual problems with dialogs popping up while you're typing (it seems spacebar would confirm that dialog in your post).

I no longer use agent forwarding. For config changes I prefer keeping "smarts" close to home and away from production, and in most cases do dumb pushes via rsync/SSH, rather than those machines ever having direct access to revision control, etc.


That assumes, say, users not inheriting ~/.ssh/config files, or having one configured for them by a site administrator.

Just because a configuration needs to be added to a file doesn't mean that everyone using that config has added it themselves, or understands the implications.

Seems that an agent notification of auth requests would help mitigate some of the risks here.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: