Error message when trying to copy SSH keys from NetProfiler to Linux server

Solution Number:
S24719
Last Modified:
2014-08-14
Issue

When trying to copy SSH keys from NetProfiler to Linux server customer may get error messages

-bash: .ssh//authorized_keys2: No such file or directory
-bash: cat/opt/cascade/vault/ssh/mazu/id_rsa.pub: No such file or directory

 

We need to verify if there are any SSH keys on the Linux server with the command

  • cd .ssh
  • ls
Solution

If .ssh does not appear with any directories in it, we will need to create a SSH key on the Linux box.

This is an example that was created on a Ubuntu linux box:

  •  rpm@SGlab-ubuntu:~$ ssh-keygen
    Generating public/private rsa key pair.
    Enter file in which to save the key (/home/rpm/.ssh/id_rsa):
    Created directory '/home/rpm/.ssh'.
    Enter passphrase (empty for no passphrase): <Press Enter, No pass phrase required>
    Enter same passphrase again: <Press Enter, No pass phrase required>
    Your identification has been saved in /home/rpm/.ssh/id_rsa.
    Your public key has been saved in /home/rpm/.ssh/id_rsa.pub.
    The key fingerprint is:
    46:35:1f:f6:63:d3:c4:84:c5:1e:b2:fa:11:7c:5d:dc rpm@SGlab-ubuntu
    The key's randomart image is:
    +--[ RSA 2048]----+
    |          o o  B=|
    |         . + +.+E|
    |        .   o B.=|
    |       .     = +o|
    |        S   . o  |
    |       .   . .   |
    |            . .  |
    |             .   |
    |                 |
    +-----------------+
  • After generating the SSH keys, please perform the copying of SSH keys from Profiler to Backup server.
  • cat /opt/cascade/vault/ssh/mazu/id_rsa.pub | ssh rpm@10.72.192.238 "cat >> .ssh//authorized_keys2"
  • Verify if you are still seeing this output appear:
  • -bash: cat/opt/cascade/vault/ssh/mazu/id_rsa.pub: No such file or directory
  • If yes, we can generate new SSH keys on NetProfiler.

    This is an example:

    [mazu@SGlab-CAX01 ~]$ ssh-keygen
    Generating public/private rsa key pair.
    Enter file in which to save the key (/home/mazu/.ssh/id_rsa): /opt/cascade/vault/ssh/mazu/id_rsa
    /opt/cascade/vault/ssh/mazu/id_rsa already exists.
    Overwrite (y/n)? y
    Enter passphrase (empty for no passphrase): <Press Enter, No pass phrase required>
    Enter same passphrase again: <Press Enter, No pass phrase required>
    Your identification has been saved in /opt/cascade/vault/ssh/mazu/id_rsa.
    Your public key has been saved in /opt/cascade/vault/ssh/mazu/id_rsa.pub.
    The key fingerprint is:
    c0:66:b6:2e:3c:84:c7:86:40:ad:48:6c:2c:cb:ac:5e mazu@SGlab-CAX01
    The key's randomart image is:
    +--[ RSA 2048]----+
    |o..              |
    |o= . .           |
    |O..   *          |
    |o= + + o         |
    |. o = . S        |
    |.  E .           |
    |. . + .          |
    | .   o           |
    |                 |
    +-----------------+
  • [mazu@SGlab-CAX01 ~]$ cat /opt/cascade/vault/ssh/mazu/id_rsa.pub | ssh rpm@10.72.192.238 "cat >> .ssh//authorized_keys2"
    rpm@10.72.192.238's password:
Environment

SteelCentral NetProfiler

Attachments
NOTICE: Riverbed® product names have changed. Please refer to the Product List for a complete list of product names.
Can't find an answer? Create a case