What commands or keys should I press after copy-paste the ssh keygen into vi /etc/dropbear/authorized_keys



  • Hello Guys,

    Somebody could help a noob here? I have a problem in the terminal mode, I want to skip typing the password each time I enter in the omega onion 2, so in the onion terminal mode, I type vi /etc/dropbear/authorized_keys

    Then I copy-paste my supposed public key like this : fgrgdfahteydfgnyhdegvdfgr bla bla

    then I am lost when I need to update/close or register the public key, I do not know which commands I must type in the keyboard. Somebody is telling me is Control + O and Esc, but no result. I am using this tutorial:

    Here a youtube video

    How to Add your Public Key to the Omega on a MAC

    Step 1: Locating Existing Key Pair

    Let’s first check to see if your computer already has a key pair. Open the Terminal App on your Mac and run:

    ls ~/.ssh/id_rsa.pub
    If this file exists, skip ahead to Step 3.

    Step 2: Generating a Key Pair

    No worries if you don’t have a key yet, follow this quick guide to generate a key pair.

    Step 3: Copy Key Pair

    Copy the contents of the public key file to the clipboard:

    cat ~/.ssh/id_rsa.pub
    Step 4: Create an Authorized Keys File

    Connect to your Omega’s command prompt and create a new file:

    vi /etc/dropbear/authorized_keys
    And paste your public key into it.

    And you’re done!

    From now on, you’ll be able to securely connect to your Omega without having to type out a password every time.



  • @Diego-Pivaral said in What commands or keys should I press after copy-paste the ssh keygen into vi /etc/dropbear/authorized_keys:

    then I am lost when I need to update/close or register the public key, I do not know which commands I must type in the keyboard. Somebody is telling me is Control + O and Esc, but no result. I am using this tutorial:

    Assuming that the paste is successful, press the ESC key to enter vi mode, followed by :wq
    Where:
    ':' - enter command mode
    'w' - write content out (save file)
    'q' - quit (return to shell prompt)


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.