I was trying to open files like .ipynb
via terminal command line (command: code
) on the remote server in VSCode.
But code
is not in PATH
, so I used
~/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/bin/remote-cli/code a.ipynb
and got this error:
Command is only available in WSL or inside a Visual Studio Code terminal.
This command was entered after I SSH node1 on the remote server.
So I guess I need to directly connect to the internal node on the remote server so that I can use code
command to open files in VSCode.
To make it clearer, here's what I did:
Me -> SSH remote server -> SSH node1 (I want to open .ipynb
files in this node because it has GPUs while the root node does not).
So I guess the solution is:
Me -> SSH remote server node1
How can I do this?