News for hackers. Stuff that matters.
Re:How Not to copy your SSH private key to your servers by axod on Monday April 19, 2010 @11:19AM (#1276881)
Seems like that's a serious edge case. Most times (IMHO) you'd be going one direction.

And if you do require both directions, you should generate separate keys on each host and just exchange the public ones.

Re:How Not to copy your SSH private key to your servers by ax0n on Monday April 19, 2010 @12:31PM (#1277086)
You're absolutely correct, but it's actually pretty common to distribute that public key all over hell and then start shuffling the private one around between the ones you find yourself ssh-ing off of. At my last job, this practice among wayward sysadmins caused me a lot of gnashing of teeth.
Re:How Not to copy your SSH private key to your servers by dedward on Monday April 19, 2010 @07:20PM (#1278142)
Wrong move though - really there should be one key per machine - and then ssh-agent set up properly to take care of the intermediate machines so you can bounce around. Using the same private key on multiple machines is just asking for trouble when you need to revoke something...
Re:How Not to copy your SSH private key to your servers by ax0n on Tuesday April 20, 2010 @12:33AM (#1278640)
Oh, believe me, I know. That's why I said it caused me much gnashing of teeth. SSH, particularly OpenSSH, is such a thing of beauty. It's a shame most sysads that I've dealt with abuse it like it's rsh and telnet.
Re:How Not to copy your SSH private key to your servers by fragmede on Monday April 19, 2010 @01:54PM (#1277376)
I'd agree that uni-directional transfer is an edge case when you have only one server.

Unfortunately for network security, that seems less and less the case these days. I definitely find myself ssh'd into two remote systems relatively often and have a need to copy files between the two. (Swapping arguments to scp is not good enough.)

Re:How Not to copy your SSH private key to your servers by xilun666 on Monday April 19, 2010 @02:31PM (#1277480)
Doing so, you expose yourself in propagating penetration from a compromised server to a previously secure one.