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

Don't show IP in SSH #1825

Open
Reginald-Gillespie opened this issue Jan 23, 2023 · 5 comments
Open

Don't show IP in SSH #1825

Reginald-Gillespie opened this issue Jan 23, 2023 · 5 comments

Comments

@Reginald-Gillespie
Copy link

When I'm working in a remote server over SSH, this extension shows my IP in the workspace field like Workspace: CodeFolder [SSH 127.0.0.1]. I get around this but setting my server to deactivate the extension, but I think it would be better if the extension had an option to hide IPs (and hiding should probably be on by default).

@slayfer-dev
Copy link

You could edit the string for "Workspace: {workspace}", I don't know if we can format the "{workspace}" variable, but it would be okay to give it a try. or disable the lowerDetails as I did.

{
  // Other configs
  // ...,
  "discord": {
    "removeLowerDetails": true
  }
}

@Guigui220D
Copy link

image

Yeah this is a dealbreaker for me, I don't want discord to show my private VPS's address, that should be disablable, or even better, opt-in

@iCrawl
Copy link
Owner

iCrawl commented Feb 13, 2024

You can just give your server a name in your ~/.ssh/config

Host my-server
	HostName server-ip
	User root (or whatever user you use to connect)
	Port 22 (or whatever port you use to connect)

Comes with the added benefit that it shows you your server name in VSCode and allows you to connect with ssh my-server too.

@Guigui220D
Copy link

Thanks

@honestlywhoknows
Copy link

Note for smarter contributors than me (or me in the future) : Could possibly use a regex expression to detect IP's and sanitize lower details before displaying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants