iterative / dvc-ssh

SSH/SFTP plugin for dvc
Apache License 2.0
1 stars 2 forks source link

`ask_username` option for ssh connections #24

Open darshan-hindocha opened 1 year ago

darshan-hindocha commented 1 year ago

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