Skip to content

Duplich

Just another WordPress site

Recent Posts

  • Print consultant
  • Berater Lisa UTM
  • Hello there
  • Digital berater
  • Giants are feeding on your laziness

Recent Comments

    Archives

    • November 2022
    • December 2021
    • October 2021
    • March 2021
    • February 2021
    • January 2020
    • November 2019
    • September 2019
    • July 2019
    • December 2018
    • October 2018
    • June 2018
    • February 2017
    • September 2016
    • April 2016
    • February 2016
    • January 2016
    • September 2015
    • July 2015
    • June 2015
    • May 2015
    • April 2015
    • March 2015
    • February 2015

    Categories

    • Encouragement
    • Entrepreneurship
    • Motivation
    • Project Management
    • Server Administration
    • Uncategorized
    • UX
    • webdesign
    • Wordpress

    Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

    Category: Server Administration

    Enabling the SSH Authentification on existing DigitalOcean Linux server (Ubuntu 14.xx)

    Enabling the SSH Authentification on existing DigitalOcean Linux server (Ubuntu 14.xx)

    In case you wonder how to do it here is a nice article from Digital ocean itself. And as a short refference I wanted to write an extension to it on how to upload your pub key to specific user.

    I thought that setting pub key in

    ~/.ssh/authorized_keys

    would be valid for any user i try to enter
    practicaly that both should work

    root@mysite.com
    and
    iamdev@mysite.com

    But that seems not to be the case.
    So to enable the ssh login for your user “iamdev” you shall login via password ( while “PasswordAuthentification yes” is still in the right state and upload the public ssh key to the users authorized_keys file itself
    after that it reload your ssh via

    sudo service ssh reload

    log out and watch the magic happen at the next login attempt via ssh.
    you should be in within a blink of an eye, or within the time you need to input passphrase in case you had it set on your private key.

    Hope this helps,

    Posted on February 19, 2016Categories Server AdministrationTags digital ocean, login, sshLeave a comment on Enabling the SSH Authentification on existing DigitalOcean Linux server (Ubuntu 14.xx)
    Proudly powered by WordPress