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

Remote SSH: Positron will remember the username connected for the first time, leading to unchangeable user #6016

Open
ZhimingYe opened this issue Jan 16, 2025 · 2 comments
Labels
area: remote host info needed Waiting on information

Comments

@ZhimingYe
Copy link

System details:

Positron and OS details:

Positron Version: 2025.01.0 (Universal) build 159
Code - OSS Version: 1.95.0
Commit: bc8820b
Date: 2025-01-09T23:29:00.471Z
Electron: 32.2.1
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.0.0

Interpreter details:

Ubuntu 22.04

Describe the issue:

If the first time I enter [email protected] for remote ssh connection, in the second time, I want to change for a new user, for example, Mary. But although I enter [email protected] for connection, Positron still asking me for the password of John, and login to John's account.

The only way to solve this is modifying the ssh config file and change username.

@jmcphers
Copy link
Collaborator

Thank you for reporting!

What gesture are you using to connect the first time (i.e. which button/command)?

The only way to solve this is modifying the ssh config file and change username.

Are you finding that the incorrect username is getting added to the ssh config after connecting the first time?

@jmcphers jmcphers added the info needed Waiting on information label Jan 17, 2025
@ZhimingYe
Copy link
Author

ZhimingYe commented Jan 17, 2025

Kapture.2025-01-17.at.13.49.48.mp4

Thanks! @jmcphers

I have a short video to describe this. You can see though I entering [email protected], Positron still asking me for password for [email protected], and login to bbb's account.

Positron will write and use the username of /Users/zhimingye/.ssh/config :) , this cause this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: remote host info needed Waiting on information
Projects
None yet
Development

No branches or pull requests

3 participants