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

ask_username option for ssh connections #24

Closed
darshan-hindocha opened this issue Feb 2, 2023 · 1 comment
Closed

ask_username option for ssh connections #24

darshan-hindocha opened this issue Feb 2, 2023 · 1 comment

Comments

@darshan-hindocha
Copy link

darshan-hindocha commented Feb 2, 2023

Currently if you want to hook up dvc to a fileserver you have to provide something like the following in the dvc config file

[core]
    remote = ssh-storage
['remote "ssh-storage"']
    url = ssh://path.to/model_registry
    port = 22
    user = user123
    ask_password = true

This means that I only have to put my password in when I run commands that require dvc to access the fileserver.

However, since this config file is checked in to git and used by others I would find it useful to have an ask_username option like the ask_password flag. This means everyone can share this config file without having to change it. Currently you have to change the username, creating a diff on the config file that you ignore. (you can't gitignore this file as it's needed in the project)

TLDR; enable an ask_user field for ssh connections

@efiop efiop transferred this issue from iterative/dvc Feb 3, 2023
@skshetry
Copy link
Member

skshetry commented Feb 6, 2025

By default, your local username will be used for ssh connection. If you want to change to something else, it can be either set in ~/.ssh/config or dvc's local config (.dvc/config.local).

I don't think there needs to be an interactive prompt for username. Closing ...

@skshetry skshetry closed this as completed Feb 6, 2025
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

2 participants