Using a variable as ssh gateway address
Erica,
Just to be clear from the screenshots above, using $INFORMATION_IP$ worked as expected when it was used as the address that is being connected to (General -> Host) putting a valid backend host IP in that place, and using the same variable - without changing anything else - in the SSH Gateway Host box didn't work.
This suggests that $INFORMATION_IP$ is obtaining that information from the containing folder, but the SSH Gateway field isn't resolving it.
I have just tried using the $COMPUTER_INFORMATION_IP$ in both the host and Gateway field. Using it in the Gateway field times out. Using it in the Host field crashes & closes RDM. This is with the IP being defined in the place that you suggest.
Using a variable as ssh gateway address
Erica, that has pointed me in the right direction!
It seems that the secret is to set the computer / hardware folder type, but then to put the address in the information property, not the computer IP
This can then be accessed using $INFORMATION_IP$ as follows -
This connects and works as expected, however, this does not -
The whole logic around using variables does seem very non-intuitive so far. Changing the folder type should not hide the generic information for that folder (i.e. the $INFORMATION_IP$ is only available when the Server type is selected) And there should be some way to see what variables are set at the point of use. So within the variables screen, maybe there could something that gives additional information about what data is ther
Using a variable as ssh gateway address
Apologies for the delay, the weekend :)
So here are some screen shots -
Hopefully, this helps!
Using a variable as ssh gateway address
ok, I might be doing something stupid here! I'll explain what I did...
Created a new folder, in the left hand pane, selected information, then under general, I put the IP of my gateway box in the IP field. Leaving everything else blank.
Under that folder, I created a new ssh shell connection, just putting $COMPUTER_IP$ into the host field under general, clicking ok to that, and trying to connect makes RDM crash.
If I instead put the IP of a VM that is inside the vnet, and put $COMPUTER_IP$ into the SSH Gateway (jump host) tab, after selecting the Connect through SSH gateway (jump host) checkbox. When I try to connect it attempts to connect and then closes
Using a variable as ssh gateway address
I have an environment that is built in a Vnet, that has a single ssh host as a ssh gateway. This environment is often torn down, recreated, and every time I need to change the ssh host IP address.
Is it possible to use a variable for this value? I tried using variables set in the containing folder but couldn't get any to work!
Any hints would be appreciated - thanks