Timeline for Permissions dilemma - Private key requires 600 for terminal SSH, more open for PHP
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 2, 2013 at 15:21 | vote | accept | James | ||
Aug 27, 2013 at 16:44 | comment | added | ircmaxell | Then create a new, separate private key... Don't re-use keys for multiple purposes... | |
Aug 27, 2013 at 16:43 | comment | added | James | Updated with clarification. I'm creating an SSH connection within PHP, and this requires a private key. It's (I assume) a valid purpose, hence why I asked for a solution that maintains good security (if there is one) :) | |
Aug 27, 2013 at 16:39 | history | edited | James | CC BY-SA 3.0 |
added 367 characters in body
|
Aug 27, 2013 at 16:38 | comment | added | ThiefMaster | I guess he wants to retrieve a file via ssh/scp and PHP has some way to specify a private key to use for this. Anyway, I agree that this is a horrible idea. | |
Aug 27, 2013 at 16:34 | comment | added | ircmaxell |
Why in lords name do you want to be able to file_get_contents() a private ssh key? This reeks of your-doing-it-wrong... Seriously, what purpose do you have reading in the private key that you need it available for both?
|
|
Aug 27, 2013 at 16:20 | answer | added | Andrew White | timeline score: 2 | |
Aug 27, 2013 at 16:17 | answer | added | Aaron Miller | timeline score: 1 | |
Aug 27, 2013 at 16:10 | history | asked | James | CC BY-SA 3.0 |