Results 1 to 5 of 5

Thread: Authorizing SSH Keys [UbuntuServer 12.04]

  1. #1
    Join Date
    Jul 2012
    Beans
    20

    Authorizing SSH Keys [UbuntuServer 12.04]

    I recently built a server to be used as a webserver, a Minecraft server, and a TeamSpeak server. I want to run the webserver and the TeamSpeak server from the root account, but I want to run the minecraft server from a separate account (mcsa) so I don't have the co-owners of my server messing with my website. I created a new account with the command:
    Code:
    sudo adduser mcsa
    And when I SSH in as mcsa, there is no ".ssh" directory with an "authorized_keys" file. Should I simply create this directory and the file, or is there a way to properly set up this file? I don't want to give them the password to the account, I simply want to authorize their key so I can easily remove their SSH privileges if I need to.

  2. #2
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,340
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Authorizing SSH Keys [UbuntuServer 12.04]

    Hi Banana937.

    By default there's no keys provided. Follow this guide to create and copy your keys.
    Quote Originally Posted by Banana937 View Post
    I want to run the webserver and the TeamSpeak server from the root account, ...
    NOT recommended! A crash or security breach of any of those services can compromise your whole machine.

    Regards.

  3. #3
    Join Date
    Jul 2012
    Beans
    20

    Re: Authorizing SSH Keys [UbuntuServer 12.04]

    Quote Originally Posted by papibe View Post
    Hi Banana937.

    By default there's no keys provided. Follow this guide to create and copy your keys.


    NOT recommended! A crash or security breach of any of those services can compromise your whole machine.

    Regards.
    I followed that guide and generated the keys, but there is still no "authorized_keys" file.

  4. #4
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,340
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Authorizing SSH Keys [UbuntuServer 12.04]

    Could you post the log an connection attempt using the triple verbose options?
    Code:
    ssh -vvv ...
    Regards.

  5. #5
    Join Date
    Jul 2012
    Beans
    20

    Re: Authorizing SSH Keys [UbuntuServer 12.04]

    Quote Originally Posted by papibe View Post
    Could you post the log an connection attempt using the triple verbose options?
    Code:
    ssh -vvv ...
    Regards.
    Apologies -- I skipped the section on transferring the key to the server. It works now.

    Thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •