Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6150281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:35:36+00:00 2026-05-23T19:35:36+00:00

We are using the PHP module SSH2 to run commands on remote servers. We

  • 0

We are using the PHP module SSH2 to run commands on remote servers. We are authenticating with public keys (ssh2_auth_pubkey_file()), but the problem is we must copy the id_dsa (private) and id_dsa.pub (public) key into the root directory of our web server (lighttpd) and make them chmod 644, otherwise we get “Authentication failed for root using public key in”. This seems like a MAJOR security issue. Is there anyway to keep the permissions on id_dsa chmod 600 and not make it readable by the web server, i.e. owner and group still root:root instead of lighttpd:lighttpd?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:35:37+00:00Added an answer on May 23, 2026 at 7:35 pm

    How is the webserver supposed to identify itself if it cannot read the private key? It has to be readable to the webserver’s process, but it should also be 0400. Alternatively use suexec or something like that to let the login process be done by some other user.

    That said, if there is any way in which the webserver can be commanded to perform some remote admin activity, you’ll have to think carefully about the security implications anyway. No matter how safe you keep the key, if anyway can coax the server into performing a remote action you’re still in trouble.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using PHP, I am trying to delete a record, but I want to check
I have been using hook_alter to modify forms in a custom PHP module. I
I'm having a memory leak problem wrapping a C++ library in PHP using SWIG.
To clarify: I'm not using the gettext php module /extension, reason being because I
I'm using jQuery to load a PHP module, in deferred mode, however the jQuery
I have been using the PHP mcrypt module for encrypting sensitive data at my
I am writing an PHP application and using the gettext module to translate to
Using PHP, what's the fastest way to convert a string like this: 123 to
Using PHP and MySQL, I have a forum system I'm trying to build. What
Using PHP, I can convert MySQL data or static table data to csv, Excel,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.