Intel® VTune™ Amplifier 2018 Help

Configuring SSH Access for Remote Collection

To collect data on a remote Linux* system, configure SSH to work in a password-less mode so it does not prompt for the password on each invocation.

Configuring a Password-less SSH Access for Linux-to-Linux Collection

For remote collection on a Linux target system, set up the password-less mode on the local Linux host as follows:

  1. Generate the key with an empty passphrase:

    host> ssh-keygen -t rsa

  2. Copy the key to target system:

    host> ssh-copy-id user@target

    Alternatively, if you do not have ssh-copy-id on your host system, use the following command:

    host> cat .ssh/id_rsa.pub | ssh user@target 'cat >> .ssh/authorized_keys'

  3. Verify that a password is not required anymore, for example:

    host> ssh user@target ls

Configuring a Password-less SSH Access with Cygwin*

For remote collection with Cygwin*, set up the password-less mode as follows:

  1. Set the CYGWIN_ROOT environment variable as follows:

    host> export CYGWIN_ROOT=/cygdrive/c/cygwin64

  2. Set a path to the Cygwin bin directory:

    host> export $PATH=$CYGWIN_ROOT/bin:$PATH

  3. Create a user directory in CYGWIN_ROOT/home if it does not exist:

    host> mkdir $CYGWIN_ROOT/home/hostuser

  4. Generate the dsa key with an empty passphrase:

    host> ssh-keygen -t dsa

  5. Set correct permissions on the generated file:

    host> chmod 600 /home/hostuser/.ssh/id_dsa

  6. Make sure the .ssh directory exists in the home directory on your device/card. If it is missing, create it.

    host> ssh user@target mkdir -p .ssh

  7. Copy the generated id_dsa.pub file to the device/card:

    host> scp /home/user/.ssh/id_dsa.pub user@target:.ssh/authorized_keys

In the command console, you can login to a remote target system without a password. VTune Amplifier GUI will try to find the ssh from environment. You may need to add CYGWIN_ROOT\bin into Windows PATH environment variable so that VTune Amplifier GUI can find the ssh command when doing the remote collection.

Configuring a Password-less SSH Access with PuTTY*

For remote collection with PuTTY* Plink, set up the password-less mode as follows:

  1. Add the path to the PuTTy tools directory to the System variables > PATH variable.

  2. Launch the PuTTY Key Generator using the puttygen.exe file.

  3. Click the Generate button (with all default settings intact) to generate keys.

  4. Save the private key to your local drive, for example: C:\temp\linux_private_key.ppk.

  5. Copy the public key from the PuTTY Key Generator window and paste it to the file in the shared Linux /home directory: ~/.ssh/authorized_keys.

    If the file is absent, create it and set the following permissions:

    chmod 0700 .ssh

    chmod 0644 .ssh/authorized_keys

  6. In the PuTTY Configuration window, make sure to have the following settings:

  7. Save the settings as the Default Settings session in PuTTY.

  8. Verify the connection and make sure the password is not required:

    host> plink.exe user@target ls

See Also