Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5135 Discussions

vtune remote ssh connection fails

dvirtz
Beginner
4,861 Views

I'm trying to connect from MacOS Big Sur to a remote ubuntu machine.

I've setup passwordless ssh and installed the target package:

 % ssh dyitzchaki@dasher-2T4s /home/dyitzchaki/vtune_profiler_target/bin32/amplxe-runss -V
Intel(R) oneAPI VTune(TM) Profiler 2021.2.0 (build 615922) Data Collector
Copyright (C) 2009-2021 Intel Corporation. All rights reserved.

But VTune still complains about not being able to connect:

- Please, check that the command `'/home/dyitzchaki/vtune_profiler_target/bin32/amplxe-runss -V'` is run successfully on the target.
- VTune cannot detect remote machine configuration.

 In the console I run vtune-gui from I can see

[25034:1109/135724.141694:ERROR:ssl_client_socket_impl.cc(981)] handshake failed; returned -1, SSL error code 1, net_error -207

 

I was able to connect to this machine in the past from an older mac.

 

This is my configuration:

SSH destination 
dyitzchaki@dasher-2T4s

VTune Profiler installation directory on the remote system
/home/dyitzchaki/vtune_profiler_target

Temporary directory on the remote system
/tmp

 

Version: 2021.8.0

OS: macOS 11.6.1

 

Labels (1)
0 Kudos
16 Replies
RahulU_Intel
Moderator
4,826 Views

Hi,


Thanks for posting in Intel communities. We are trying to reproduce your issue from our side. We will update you soon.


Regards,

Rahul


0 Kudos
RahulU_Intel
Moderator
4,796 Views

Hi,


Could you please share with us the configuration of the Ubuntu machine which you are trying to connect to.


Thanks and Regards

Rahul


0 Kudos
dvirtz
Beginner
4,797 Views
Host dasher-test
  HostName <hidden>
  User ubuntu
  ProxyCommand ssh -W %h:%p  <hidden> -p <hidden>
  StrictHostKeyChecking no

Ubuntu version is 18.04.

What else do you need?

0 Kudos
RahulU_Intel
Moderator
4,748 Views

Hi,


We tried reproducing your issue from our side. We were successfully able to connect to remote ubuntu machine and run analysis on it. Could you please make sure that you have configured the linux target system correctly and try running remote performance analysis on the remote ubuntu machine by following the steps in the given link:

https://www.intel.com/content/www/us/en/develop/documentation/vtune-help/top/command-line-interface/running-command-line-analysis/configuring-analysis-options-from-the-command-line/collect-data-remote-linux-systems-command-line.html

For configuring remote ubuntu machine you can follow the below link:

https://www.intel.com/content/www/us/en/develop/documentation/vtune-help/top/set-up-analysis-target/linux-targets/remote-linux-target-setup/configuring-ssh-access-for-remote-collection.html#configuring-ssh-access-for-remote-collection_LIN


Thanks and Regards

Rahul


0 Kudos
dvirtz
Beginner
4,686 Views

Thanks Rahul.

I went over the docs again and verified everything is setup correctly.

I did notice though that command-line profiling does work but the GUI still shows the same errors as above.

0 Kudos
RahulU_Intel
Moderator
4,608 Views

Hi,

 

We tried reproducing your issue at our end. We were able to do the profiling through GUI. Could you please share with us the screenshot of your configuration in GUI and also the error you are getting. Could you please confirm that in the "WHERE" pane of VTune Gui for the fields "VTune profiler installation directory on the remote system" and "Temporary directory on the remote system" you are giving a location of any temporary directory and not the path of application in the VTune directory on the remote system(We have also attached a screenshot for your reference). After doing the steps for "WHERE" pane you have to click on Deploy. Also could you please confirm that in the "WHAT" pane of the VTune Gui you have given the right path for the application you want to do the profiling on.

 

Hope this helps.

 

Thanks and Regards

Rahul

Scrnshot.png

 

 

0 Kudos
dvirtz
Beginner
4,556 Views

GUI screenshot (not working):

Screen Shot 2021-12-05 at 11.43.13.png

CLI screenshot (working):

Screen Shot 2021-12-05 at 11.41.21.png

 

0 Kudos
RahulU_Intel
Moderator
4,392 Views

Hi,


We are working on this internally. We will update you soon with an update.


Thanks and Regards

Rahul


0 Kudos
RahulU_Intel
Moderator
4,199 Views

Hi,

 

We are sorry for the delay. Could you please confirm you clicked on the "Deploy" button in the "WHERE" pane. Also Could you please share with us the log files generated in the /tmp/vtune_profiler_target.


Thanks and Regards

Rahul


0 Kudos
dvirtz
Beginner
4,143 Views

Thanks for the reply.

 

The above screenshot is after clicking "Deploy". I don't see any logs in /tmp/vtune_profiler_target:

(dasher-3.6.9) dyitzchaki@r740-poptest:~/dasher$ ls -l /tmp/vtune_profiler_target/
total 56
drwxrwxr-x  2 dyitzchaki dyitzchaki  4096 Nov 28 10:38 bin32
drwxrwxr-x  6 dyitzchaki dyitzchaki  4096 Nov 28 10:38 bin64
drwxrwxr-x 11 dyitzchaki dyitzchaki  4096 Nov 28 10:38 config
drwxrwxr-x  4 dyitzchaki dyitzchaki  4096 Nov 28 10:38 lib32
drwxrwxr-x  6 dyitzchaki dyitzchaki 12288 Nov 28 10:38 lib64
drwxrwxr-x  3 dyitzchaki dyitzchaki  4096 Nov 28 10:38 message
drwxrwxr-x  3 dyitzchaki dyitzchaki  4096 Nov 28 10:38 resource
drwxrwxr-x  5 dyitzchaki dyitzchaki  4096 Nov 28 10:38 sepdk
-rwxr-xr-x  1 dyitzchaki dyitzchaki  1937 Sep 28 20:05 sep_vars_busybox.sh
-rwxr-xr-x  1 dyitzchaki dyitzchaki  2291 Sep 28 20:05 sep_vars.sh
drwxrwxr-x  3 dyitzchaki dyitzchaki  4096 Nov 28 10:38 socwatch
drwxrwxr-x  3 dyitzchaki dyitzchaki  4096 Nov 28 10:38 vpp
(dasher-3.6.9) dyitzchaki@r740-poptest:~/dasher$ 

 

0 Kudos
RahulU_Intel
Moderator
4,070 Views

Hi,


Sorry for the delay. We looked into your case. Could you please check that your destination Ubuntu machine is up and running, and you are able to ping to it. Also could you please try giving the IP of your Ubuntu machine in the SSH Destination field of the WHERE pane. Like instead of dyitzchaki@dasher-2T4s you can try giving dyitzchaki@ip_of_ubuntu_machine.


Hope this helps.


Thanks & Regards

Rahul


0 Kudos
dvirtz
Beginner
4,064 Views

Hi Rahul.

 

I'm connecting to the machine via a proxy so I can't connect with the IP directly.

 

Thanks,

Dvir

0 Kudos
RahulU_Intel
Moderator
4,042 Views

Hi,


Could you please confirm that your configuration is done correctly as you are connecting with the proxy. To set up your remote target for profiling you can follow the below link:


https://www.intel.com/content/www/us/en/develop/documentation/vtune-cookbook/top/configuration-recipes/profiling-remote-target-through-proxy.html


Thanks

Rahul


0 Kudos
dvirtz
Beginner
4,032 Views

Using nc on ProxyCommand doesn't work for me.

If I set

  ProxyCommand ncat --proxy-type socks4 --proxy-auth <proxy_user> --proxy <proxy> %h %p

I get

Ncat: Proxy connection failed.

from ssh.

With the following ProxyCommand

  ProxyCommand ssh -W %h:%p <proxy>

I can connect successfully without a password.

0 Kudos
RahulU_Intel
Moderator
3,963 Views

Hi,


We are checking on this internally. We will get back to you soon with an update.


Thanks

Rahul


0 Kudos
AthiraM_Intel
Moderator
3,886 Views

Hi,

 

Sorry to inform you that we were unable to reproduce the issue from our side. We tried to replicate your issue in different environments and it's working fine for us. We tried with MacOS(11.6.3) and AWS remote target .We were able to profile successfully using both the command line and through VTune GUI.

Please work with your system administrator to check your system settings and proxy.

 

If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.

 

 

Thanks.

 

 

0 Kudos
Reply