Configure SSH Access for Remote Collection
Enable a Password-less SSH Access from Windows to Linux
- Create aVTuneproject.Profiler
- In theConfigure Analysiswindow, select theRemote Linux (SSH)target system from theWHEREpane.
- Specify your remote system in theSSH destinationfield asuser@target; for example:email@example.com.VTuneverifies your SSH connection and, if fails, it generates public/private keys required for enabling the password-less access and reports the results via an interactive terminal window.Profiler
- When the public/private keys are generated, press any key to enter your credentials and letVTuneProfilerautomaticallycopy and apply the public/private keys.Alternatively, you may press Ctrl-C to stop the automation. In this case, you need tomanuallyadd the already generated public/private keys from the paths specified in the terminal window to~/.ssh/authorized_keyson the remote system.VTunedoes not keep your credentials but uses them only once to enable the password-less access.Profiler
Configure a Password-less SSH Access from Linux/macOS to Linux
- Generate the key with an empty passphrase:host> ssh-keygen -t rsa
- Copy the key to target system:host> ssh-copy-iduser@targetAlternatively, if you do not havessh-copy-idon your host system, use the following command:host> cat .ssh/id_rsa.pub | sshuser@target'cat >> .ssh/authorized_keys'
- Verify that a password is not required anymore, for example:host> sshuser@targetls
chmod go-w ~/ chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys
RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys
sudo service ssh restart sudo service sshd restart (on CentOS)