Skip to content
Advertisement

How to access local variables in remote server using ssh [closed]

I am trying to access my local variable in remote server. Which command should I use.

Ex. cmd:

JavaScript

REMOTE SERVER:

JavaScript

output should get 2.

Advertisement

Answer

Set the variable directly on the remote side:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement