Remote project ssh with JumpServer

Hi,

I am trying to create a remote project with an ssh config.
Here my current environment.

+-------+         +--------+         +-----------+
| Local |         | Host A |         |   Host B  |
+-------+ ------> +--------+-------->+-----------+
|No GPU |         | No GPU |         |  Gpu K80  |
|Nsight |         +--------+         |  Cuda 9.1 |
+-------+                            | workspace |
                                     +-----------+

You can find here my ssh config file (~/.ssh/config) :

Host host_a
	User root
	Hostname localhost
	Port 8021
	IdentityFile ~/mykeyA

Host host_b
	User user
	Hostname 10.10.0.2
	IdentityFile ~/mykeyB
	Port 22
	ProxyCommand ssh -q -W %h:%p host_a

In my command line a simple $ ssh host_b works

I just don’t get how in Nsight, with the remote connection ssh system, I could do the same that the config file above.
I can precise only the host name, the user name and my port number with the current remote Connection Panel.
Is it possible to do what I want?
Is there a file that we could modify manually ?
Is it possible to link my config file to Nsight ?
Thanks

Benjamin Robert

Hi, just an update for people who are interested.

I am using the protocol ForwardX11 provide by ssh on my Host A and B and nothing on my local machine.
It is working even if it is lagging a little bit.
I don’t use so the remote features available on Nsight.

here my file ssh config for people who are interested (~/.ssh/config)

Host host_a 
	User root
	Hostname localhost
	Port 8021
	IdentityFile ~/mykeyA
	ForwardX11 yes
	ForwardAgent yes

Host host_b
	User benjamin_robert
	Hostname 10.10.0.2
	Port 22
	IdentityFile  ~/mykeyB
	ProxyCommand ssh -q -W %h:%p host_a
	ForwardX11 yes
	ForwardAgent yes
	Compression yes
	XauthLocation /usr/bin/xauth

If someone finds a solution to my previous problem with Nsight, I am still interested.

1 Like