News for hackers. Stuff that matters.
Re:Patch to Log SSH Passwords – One Year Results by jamiesonbecker on Wednesday November 19, 2014 @09:07PM (#8634008)
I just don't know why people still use passwords with SSH anyway! (ie userify and stuff)
Re:Patch to Log SSH Passwords – One Year Results by imron on Wednesday November 19, 2014 @10:02PM (#8634198)
Not sure why you're getting downvotes. I use key authentication for all my SSH needs.

If it's important enough to still need a password on top of that, the password can go on the key.

Re:Patch to Log SSH Passwords – One Year Results by e12e on Wednesday November 19, 2014 @10:31PM (#8634290)
Huh? Always encrypt the ssh-key, and use ssh-agent for convenience. That said it is now quite easy to set up proper two-factor authentication: eg key and otp.
Re:Patch to Log SSH Passwords – One Year Results by lobster_johnson on Thursday November 20, 2014 @01:03AM (#8634618)
On OS X, the keychain app caches the private key password forever. Even after a reboot. Any idea how to fix this? Ideally Keychain should ask me again (say) an hour after my last login with the same key.
Re:Patch to Log SSH Passwords – One Year Results by cflee on Thursday November 20, 2014 @03:40AM (#8634858)
I don't think you can set this at a key-specific level, but in Keychain Access, you can ctrl-click on the keychain and set it to lock after x min of inactivity / when sleeping.

I'm not sure if you can put your ssh keys on a specific (non-login) keychain.

If you want those, you may want to go to Keychain Access > Preferences > First Aid > uncheck "Keep login keychain unlocked".

Re:Patch to Log SSH Passwords – One Year Results by rectang on Thursday November 20, 2014 @08:18AM (#8635531)
You can drag-and-drop items between keychains -- you just need to enter the passwords for both keychains when doing so.

This makes it possible to keep valuable items in one or more auxiliary keychains set to always prompt (lock after 0 minutes). (This technique isn't a panacea but it contributes to defense in depth.)

Re:Patch to Log SSH Passwords – One Year Results by lobster_johnson on Thursday November 20, 2014 @12:31PM (#8636900)
Brilliant, I didn't know you could lock them.

However, it doesn't solve the agent caching problem. Once a key has been added the agent, Keychain never asks again, even after it's locked.

ssh-add has an option "-t <seconds>" to make added keys automatically expire. That will work, but it only works for newly added keys. As far as I can tell, the Keychain helper calls ssh-add to add keys, and I don't see a way to have it pass -t.

Edit: Looks like holmar's suggestion below to change the ssh-agent daemon to run with -t would fix this.

Re:Patch to Log SSH Passwords – One Year Results by holmars on Thursday November 20, 2014 @07:36AM (#8635412)
Re:Patch to Log SSH Passwords – One Year Results by lucaspiller on Thursday November 20, 2014 @12:10AM (#8634507)
At work we have to send data to a few third parties, it's pretty much up to them how they set up their end. I think everything is using SFTP at least, but a few still have passwords rather than keys. The accounts are restricted so you can't get a full shell though. My guess is these systems are designed by non-technical people who don't really understand the issues.
Re:Patch to Log SSH Passwords – One Year Results by sebastianavina on Wednesday November 19, 2014 @10:12PM (#8634241)
well, for generating/uploading your key, you need a password.
Re:Patch to Log SSH Passwords – One Year Results by jdpage on Wednesday November 19, 2014 @11:45PM (#8634459)
When I was first introduced to SSH, the administrator had me transmit my public key to them and they added it to my account themselves, and that's how I've done it on all the servers I administrate since. This way, you can disable password authentication entirely.
Re:Patch to Log SSH Passwords – One Year Results by ytch on Wednesday November 19, 2014 @10:37PM (#8634313)
It's just a honeypot, not a real server with password-based auth.
Re:Patch to Log SSH Passwords – One Year Results by dmix on Wednesday November 19, 2014 @10:18PM (#8634260)
Who is proposing using passwords for SSH is a good idea? This is a honeypot.