Remote-SSH no longer shows hostname in ssh config but IP address when connected #238025
Closed
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.96.3
- OS Version: macOS 15.2
Steps to Reproduce:
- My ssh config at
~/.ssh/config
contains a number of host entries with names like the following:
Host server-01
HostName 10.35.135.15
- In VSCode, choose Connect to Host. The list of remote hosts correctly displays the hostnames rather than IPs (as always).
- Choose a host (e.g.
server-01
), then suddenly it asks me the remote OS platform (linux, macOS, windows) of the IP (10.35.135.15) rather than the hostnameserver-01
. This is not ordinary becauseserver-01
is already configured inremote.SSH.remotePlatform
insettings.json
. I chooselinux
here. - Then the connection is established to the
IP
. All places that previously displayed the hostname now shows the IP (status bar, title bar, etc.), which is quite annoying when I have many VSCode windows open since I cannot tell which I should switch to by looking at the IP.
This happens just suddenly and I'm not sure if I'm missing something.
Metadata
Assignees
Labels
No labels