Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a display name optiton #10616

Open
fbd-ss opened this issue Jan 7, 2025 · 1 comment
Open

Need a display name optiton #10616

fbd-ss opened this issue Jan 7, 2025 · 1 comment
Assignees
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH

Comments

@fbd-ss
Copy link

fbd-ss commented Jan 7, 2025

Type: Feature Request

When setting up an ssh host.
There could be 2 user accounts on the same ip, ie...
root@some_ip
jimbo@some_ip

The trouble is in the ssh hosts list they will get displayed as
[email protected]
and
[email protected]

It's too hard to remember the ip, so another field in the config file "display_name" or something, so in the hosts list showed,
root@somemachine
and
jimbo@somemachine

Extension version: 0.87.0
VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Windows_NT x64 10.0.26100
Modes:
Remote OS version: Linux x64 6.8.0-51-generic

@vs-code-engineering vs-code-engineering bot added the ssh Issue in vscode-remote SSH label Jan 7, 2025
@joshspicer
Copy link
Member

joshspicer commented Jan 8, 2025

Thanks for the feature request. Have you tried adding these hosts to your machine's SSH config file?

  1. Open the configuration file from the Remote Explorer with this gear icon
Image
  1. Add your hosts
Host Computer01
    HostName 1.2.3.4
    User root

Host Computer02
    HostName 1.2.3.4
    User jimbo
  1. See them named in the Remote Explorer.

Does this help? If not, could you please share why not so I can better understand? Thanks!

@joshspicer joshspicer added the info-needed Issue requires more information from poster label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

3 participants