glg wrote:
sshd should use ~/.ssh/ no matter what ~ is. So, in this case, it'd be /var/www/domain.com/.ssh/
That can be changed in your sshd_config file.
Code:
AuthorizedKeysFile
Specifies the file that contains the public keys that can be used
for user authentication. AuthorizedKeysFile may contain tokens
of the form %T which are substituted during connection set-up.
The following tokens are defined: %% is replaced by a literal
'%', %h is replaced by the home directory of the user being
authenticated and %u is replaced by the username of that user.
After expansion, AuthorizedKeysFile is taken to be an absolute
path or one relative to the user's home directory. The default
is ``.ssh/authorized_keys''.
* As a side note to the OP, if you are doing something like this, please define a /web folder or the like and have all HTML, PHP, * files in that folder and have your web server serve /web to the world and confine your home dir the /var/www/domain.com/
Quote:
Does it matter who owns the .ssh folder?
Very much so, and permissions have to be set very properly. The owner and group owner should be the user you are attempting to log in as, the .ssh folder will need to be set to chmod 700 and the authorized_keys to chmod 644.
_________________
If it ain't broke, you didn't tweak it enough. If it is broke, use more duct tape.
http://independentchaos.com