Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do we remove ssh targets from Remote Explorer

Tags:

The Remote Explorer sidebar has an obvious icon for adding new targets but I can't find an option for removing or editing a target. In my case, servers' IPs change frequently so they just continue to add up in the sidebar with now way of cleaning it up.

Are the targets stored in a file somewhere that I can manually edit?

like image 221
Lucian Thorr Avatar asked Nov 20 '19 14:11

Lucian Thorr


People also ask

How do I remove an SSH target from VS Code?

You can remove or edit it by editing . ssh/config file. Hope this helps.

Is it safe to remove VS Code server?

vscode-server in your home directory on the server becoming corrupted in some way. Since VS Code will automatically recreate that directory when you reconnect, it's safe to delete it.

How does VS Code remote SSH work?

The Visual Studio Code Remote - SSH extension allows you to open a remote folder on any remote machine, virtual machine, or container with a running SSH server and take full advantage of VS Code's feature set. Once connected to a server, you can interact with files and folders anywhere on the remote filesystem.


1 Answers

You can remove or edit it by editing .ssh/config file. Hope this helps.

like image 131
Stella Avatar answered Jan 01 '23 20:01

Stella