Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Generate key on the remote server:

    Code Block
    bats12:~> ssh-keygen

    generating public/private rsa key pair.

  2. Enter the file in which to save the key (/home/

    absharma

    <username>/.ssh/id_rsa): testingkey

  3. Enter passphrase (leave it empty if there is no passphrase).
  4. Enter same passphrase again, and your identification will be saved in testingkey.
    Your public key has been saved in testingkey.pub.

    The key fingerprint is:

    Code Block
    SHA256:uxVaJoaxAPGaWnlLd9Wwfja1R4WU13e2XUvcInwjmMI absharma@bats12<username>@bats12

    The key's randomart image is:

    Code Block
    The key's randomart image is:
    
    +---[RSA 2048]----+
    |  o.   .  .+ .oo+|
    |   o    E o++ *oX|
    |    o .  .o .+o=O|
    |   + . + o   . =.|
    |  = o + S = + . .|
    | o o o o * + . . |
    |.   .   o .      |
    |         o       |
    |        .        |
    +----[SHA256]-----+
  5. On the remove server, edit /.shh/config file as shown below. 

    Info
    titleNote

    The keytest file is the one that is already installed on the SBC under authorized keys.

    Code Block
    vi ~/.ssh/config
     
    Host 10.34.194.5236
        Port 2024
        User linuxadmin
        IdentityFile /home/absharma<username>/keytest
  6. Using ssh-copy-id, copy the key to the SBC:

    Code Block
    bats12:~>ssh-copy-id -i testingkey.pub -f linuxadmin@10.34.194.36
    /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "testingkey.pub"

    Number of key(s) added is 1.

  7. Log into the machine with "ssh 'linuxadmix@10.34.194.36'" and check to ensure that only the proper key(s) were added. 
  8. On the SBC, check that no password prompt appears.

    Code Block
    bats12:~> ssh linuxadmin@10.34.194.36
    Last login: Mon Dec 17 01:40:33 EST 2018 from 10.54.81.11 on ssh
    Sonus ConnexIP OS 06.02.00-R000 GNU/Linux
    linuxadmin@vsbc1:~$ exit
    exit

...