Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member mickalo's Avatar
    Join Date
    Apr 2002
    Location
    N.W. Iowa
    Posts
    753

    Default SSH Password Auth.

    Hello,

    If we enable the "SSH Password Auth" I assume I need to generate the private/public keys in order to login via SSH shell.

    I use Vandyke's SecureCRT & SecureFTP which generates it's own pub/private keys. Would I need to import them via the "Manage Keys" import function, then these would be used when I log in as root via the shell if we enable the SSH Password Auth?

    What do we need to do to allow anyone else login via the shell ... do we need to import separate pub/private keys for each person we allow shell access? As we sometimes need a outside service to work on the server from time to time, which requires root access via the shell?

    Not real clear how this SSH Password Auth actual works with the pub/private keys and where they would be stored on the server. Are they all stored in the /root/.ssh folder?

    TIA,
    Mickalo

    Thunder Rain Internet Publishing

    Providing Internet Solutions that work!
    Custom Perl and Database Programming

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Here's a handy guide that uses putty as the client, but you should get the idea:
    http://www.unixwiz.net/techtips/putt...h.html#keypair

    Basically, you or anyone else logging in over SSH have their own private/public key pair generated on their PC SSH client. You must then put the public key generated in the client into the servers /root/.ssh/authorized_keys2 file. That's it.

    So for 3rd parties you need to ask them for their SSH public key to add to the server file to allow them access.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member mickalo's Avatar
    Join Date
    Apr 2002
    Location
    N.W. Iowa
    Posts
    753

    Default

    Quote Originally Posted by chirpy
    Here's a handy guide that uses putty as the client, but you should get the idea:
    http://www.unixwiz.net/techtips/putt...h.html#keypair

    Basically, you or anyone else logging in over SSH have their own private/public key pair generated on their PC SSH client. You must then put the public key generated in the client into the servers /root/.ssh/authorized_keys2 file. That's it.

    So for 3rd parties you need to ask them for their SSH public key to add to the server file to allow them access.
    so your saying the ALL the pub keys are stored in one file, the authorized_keys2 ?? Is there a specific format that each of these pub keys are appended to this file??

    Thx's
    Mickalo

    Thunder Rain Internet Publishing

    Providing Internet Solutions that work!
    Custom Perl and Database Programming

  4. #4
    Member mickalo's Avatar
    Join Date
    Apr 2002
    Location
    N.W. Iowa
    Posts
    753

    Default

    Well maybe someone may come up with a "How To" through for Cpanel/Whm in the future .. seems like a real hassle to set this up.

    Mickalo

    Thunder Rain Internet Publishing

    Providing Internet Solutions that work!
    Custom Perl and Database Programming

  5. #5
    Member
    Join Date
    Oct 2004
    Location
    New Jersey, USA
    Posts
    160

    Default

    Quite easy, generate a key with something such as putty-gen, and create the file if it doesnt exist: /root/.ssh/authorized_keys and put the public version of the key in, on one line.

    Then use the private saved key version to access the server through a SSH client.

    PuTTY and PuTTY-gen can be downloaded at: http://www.chiark.greenend.org.uk/~s.../download.html
    -Kris
    HostMerit
    'Web Hosting on Your Terms'

  6. #6
    Member
    Join Date
    Jun 2002
    Posts
    39

    Default

    Where do I find the Manage SSH Keys feature? It doesn't show on my WHM menus.

    Roger

  7. #7
    Member mickalo's Avatar
    Join Date
    Apr 2002
    Location
    N.W. Iowa
    Posts
    753

    Default

    Quote Originally Posted by HostMerit
    Quite easy, generate a key with something such as putty-gen, and create the file if it doesnt exist: /root/.ssh/authorized_keys and put the public version of the key in, on one line.

    Then use the private saved key version to access the server through a SSH client.

    PuTTY and PuTTY-gen can be downloaded at: http://www.chiark.greenend.org.uk/~s.../download.html
    Ok, I'll give it a try. I use Vandyke's SecureCRT which also generates these keys. wouldn't those also work?

    Then each public key has to be on it's own single line then? What about multiple pub keys, one on each line?

    Mickalo

    Thunder Rain Internet Publishing

    Providing Internet Solutions that work!
    Custom Perl and Database Programming

  8. #8
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Yes, each public key goes on a separate line within the file.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  9. #9
    Member
    Join Date
    Feb 2004
    Posts
    203

    Default

    Manage SSH Keys don't work?
    Attached Thumbnails Attached Thumbnails SSH Password Auth.-ssh-keys_01.gif   SSH Password Auth.-ssh-keys_02.gif  

Similar Threads & Tags
Similar threads

  1. SSH access via Public Key Auth for cPanel users - How?
    By jols in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-28-2008, 03:58 AM
  2. SSH login failure - Can SSH password be RESETTED?
    By guilliam in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 03-10-2006, 04:00 PM
  3. Force password auth for SMTP
    By smithy in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-21-2005, 12:16 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube