I'm using Intel VTune on my personal MAC, to profile a remote application on a Linux server. I followed the instructions on https://software.intel.com/content/www/us/en/develop/documentation/get-started-with-vtune/top/macos.html.
When configuring analysis, in the
WHERE pane, I selected
Remote Linux (SSH) and specified the
SSH destination with
username@hostname. But I got
Cannot communicate with the target username@hostname.
I have configured the password-less connection, which means I can directly connect to the target via the command
ssh username@hostname without a password. I have no idea why it said I cannot connect to the remote target. Any suggestions? Thanks.
Edit: I still have not solved this issue... I notice the second line "VTune Profiler installation directory on the remote system". Must VTune be installed on the remote server? Could this be the problem?
I have tried this without any problem, so I suggest to see possible issues section and follow them, it may help,
I usually use this command to set the passwordless ssh command, and it works for me:
cat ~/.ssh/id_rsa.pub | ssh remote_username@server_ip_address "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"