Cpanel user SSH key creation
Hi all
Having some trouble setting up SSH to have account holders access the server via SFTP only. I created a user account and logon to its Cpanel, where I create SSH keys and they appear to be created correctly although when I go into the Manage SSH keys page it states "No keys installed" both public and private.
Any ideas as to what might be preventing the keys from being created successfully? I have Mod_ruid2 and DSO running if that helps. I have also tried creating the keys manually from the shell and adding them to the users authorized_keys file and have not succeeded with this either.
Cheers
-
Just tried importing an existing key and got the following error message "Could not write key to /home/user/.ssh/id_dsa.pub". So is it that I have to create this file first or is this a permissions issue? If so what should the perms be for the .ssh directory? Assuming that this is the issue of course. Cheers 0 -
[QUOTE]Having some trouble setting up SSH to have account holders access the server via SFTP only.
cPanel users can use SFTP by default, not changes needed. They will need to know the proper port number though. cPanel > Files section > FTP Accounts > Special FTP Accounts section at bottom of this page. To the right of the main cPanel users name there, click Configure FTP Client to find options and manual settings details. You'll note the SFTP port listed there.0 -
I have password auth turned off and want to force my clients to use SFTP with keys. I am attempting to simulate the process of setting up a new account as a test before going live. Still no luck :( 0 -
You may find this thread helpful: SSH Keys for cPanel Users Thank you. 0
Please sign in to leave a comment.
Comments
4 comments