Red Hat Bugzilla – Bug 800055
Some authorized_keys files are HUGE
Last modified: 2015-05-14 18:52:10 EDT
Description of problem:
Some apps' authorized keys files are HUGE in STG (like 75M). The file has the key and then tons of blank lines and then the key again a few times.
This causes problems as cdk-authorized-ssh-key-remove bloats to multiple gigs of memory when trying to work with these files (which eventually runs the machine out of memory, which then causes our monitoring to reboot the instance.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Unsure how to get the keys into this state.
Huge authorized_keys files
The authorized_keys files should only be as large as the number of keys in them.
cdk-authorized-ssh-key-remove was doubling the number of newlines every time it was run causing file sizes to grow.
(In reply to comment #1)
> cdk-authorized-ssh-key-remove was doubling the number of newlines every time it
> was run causing file sizes to grow.
For user can not access the authorized_keys files on stage,and QE can not access stage server as well, could not find a better way to verify it, could you please help to verify this on stage,QE will verify this on devenv once there's new build comes.
verified on devenv_1654, issue cannot be reproduced.
Since I don't know the exact repro steps, I tried to add and remove ssh keys for many times. And didn't hit this issue.
mark as verified.
I think that's reasonable.
Unfortunately we don't have repro steps either, we just noticed the problem in STG and told kraman about it and he fixed it.