Jump to content

RoxaLyssa

Inactive Member
  • Posts

    236
  • Joined

  • Last visited

  • Days Won

    5
  • Feedback

    0%

Posts posted by RoxaLyssa

  1. Dear Community,

     

    In this tutorial I will show you how you to set up ssh key instead of password-based authentication for your server.

    With ssh key you can easily connect to your server on the ssh port without password, and it provides much stronger protection than the simple password-based authentication.

    First of all, you have to generate your own unique key via Puttygen by moving your mouse cursor over the blank area:

     

    9377983961_www.kepfeltoltes.hu_.png

     

    Then you will get something like this:

     

    10523790772_www.kepfeltoltes.hu_.png

     

    The random code that I highlighted will be needed, so do not close your generator! You can add here password protection for your key if you like, and when you are finished, save it as a private key.

     

    After that, you have to create a new user for your system without using password.

    My example is 'sshkeytest'

     

    11729026803_www.kepfeltoltes.hu_.png

     

    After that, type the following commands:

    su sshkeytest
    cd /home/sshkeytest
    mkdir .ssh
    chmod 700 .ssh
    cd .ssh

    In this directory you have to create a file called authorized_keys2. You can do it via sftp, or by using the following command:

    ee authorized_keys2

    Now insert the code that is shown in the Puttygen, but only to the last == characters (which I highlighted before), it must not include the rsa-key-20... characters. It is important that you have to past it in only one line.

     

    If you are ready, type the following:

    chmod 600 authorized_keys2

    After that you have to allow your new user's login by editing the sshd_config file:

    ee /etc/ssh/sshd_config

    Search for something like this:

     

    4_www.kepfeltoltes.hu_.png

     

    And rewrite it to this:

     

    5_www.kepfeltoltes.hu_.png

     

    With this option you allowed the ssh login of the 'sshkeytest' user (and only for this user!), and disabled the root login. If you do not find these lines, you can just simple type into the end of the file.

     

    !! WARNING !! 

    If you can connect to your server only via ssh protocoll, do not disable root login at first, because if you did something wrong, you will not be able to connect after this step.

     

    If you are ready, you have to restart the sshd:

    /etc/rc.d/sshd restart

    Now open your PageAnt, and browse your .ppk file. While PageAnt is running with your key, you can log in via Putty or FileZilla (or any other client which supports ssh key authentication) without password.

     

    If your server still asks for password, you did something wrong. Try again.

     

    With the new user you do not have full rights, but you will need root rights for many operations. You can easily switch to root by using the su command:

    su root

    After you gave the right password, you are logged in with the root user with full rights.

     

     

    Download the mentioned programs here.

     

     

    Sorry if this tutorial already exists in this board, but I could not find it anywhere.

     

    I hope that it was useful and I could help some of you with that. Good luck!

     

     

    Kind regards,

    RoxaLyssa

    • Metin2 Dev 1
    • Good 1
    • Love 6
  2. If you like detective films, you might enjoy the adaptions from Dan Brown's famous books, the Da Vinci Code, and Angels & Demons, if you haven't seen them yet. Also another favourites of mine are the following movies:

    • The Last Samurai
    • Memoirs of a Geisha
    • Django Unchained
    • The Intouchables
    • Black Swan
    • Rush
    • V for Vendetta
    • Requiem for a Dream
    • The Butterfly Effect
    • Pulp Fiction
    • Remember me
    • Prince of Persia: The Sands of Time
    • Inception

    But I think none of these are detective films, nor the first 2, just crime thrillers, but both movies are great. ;)

    • Love 1
  3. I don't like homosexual people, but this competition is not about appearance or sexual identity but performing and singing talent, and the quality of the chosen song. I've heard most of the performers, and Conchita was overwhelming for me. In my opinion, he/she deserved the win, at least because it could be a really hard thing undertaking to everyone what he/she really is, and singing about his/her pain. However, probably he/she knew that the half of the world would attack him/her after the competition, and so it is.

    • Love 2
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.