VSCode Remote SSH doesn't open file from terminal

Viewed 1580
  • Version of VS Code: Visual Studio Code 1.48.2
  • What type of remote connection: SSH
  • operating system: Ubuntu 16.04.7 LTS (Xenial Xerus)
  • remote operating system: Ubuntu 16.04.7 LTS (Xenial Xerus)

I have a remote SSH connection set up between two machines and it appears great - I can navigate the directory structure through the integrated terminal, open a remote workspace, and open files using CTRL+P to search for files in the work space. However, if I try to open a file from the remote system via the integrated terminal to my local instance of VSCode, nothing happens. code file.txt is a no-op, when instead I'd like to open the file in my current local window.

1 Answers

when I run code -r filename, I get error message

Unable to connect to VS Code server.
Error in request

it turns out I shouldn't use tmux, after I exit tmux, it works fine.

but I haven't figure out how to make this work in tmux

Related