The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Automatically Add SSH Keys on Account Creation

Discussion in 'General Discussion' started by keddie, Jun 2, 2009.

  1. keddie

    keddie Well-Known Member

    Joined:
    Nov 17, 2007
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Can anyone suggest a way for me to have a custom authorized_keys file added to each new account when it is created?

    I have a template authorized_keys file that is prepopulated with my main admin pubkeys, it would simplify things a lot for me if I didn't have to manually add them each time.

    Al
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You could write a /scripts/postwwwacct shell script to do that. Documentation for /scripts/postwwwacct is available at:

    ScriptHooks < AllDocumentation < TWiki
     
  3. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
  4. keddie

    keddie Well-Known Member

    Joined:
    Nov 17, 2007
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Thanks

    Thanks for your replies, that should make my user admin a little easier :)
     
Loading...

Share This Page