You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use an ssh agent with dozens of keys at a time. To avoid "Too many authentication failures" I must specify which private key my agent should use by adding an Identity File <path to corresponding public key> line to each of my hosts. Somewhere in the SSH stack that DVC uses (based on traceback info I'm guessing sshfs), this key loaded as a private key, which it of course fails the format checks on.
I took a look in the dvc_ssh client.py as well, and I'm not sure this case is handled properly there either.
Traceback I grabbed by setting logging output file: dvc_ssh_debug.log
Reproduce
Generate an ssh keypair with ssh-keygen
Install the public key to an authorized_keys file on a remote server with ssh-copy-id
Install the private key to a local ssh-agent with ssh-add
Edit your ~/.ssh/config to include:
Host <remote server>
Hostname <remote hostname>
IdentityFile <path to key>.pub
Bug Report
Description
I use an ssh agent with dozens of keys at a time. To avoid "Too many authentication failures" I must specify which private key my agent should use by adding an
Identity File <path to corresponding public key>
line to each of my hosts. Somewhere in the SSH stack that DVC uses (based on traceback info I'm guessing sshfs), this key loaded as a private key, which it of course fails the format checks on.I took a look in the dvc_ssh client.py as well, and I'm not sure this case is handled properly there either.
Traceback I grabbed by setting logging output file: dvc_ssh_debug.log
Reproduce
ssh-keygen
authorized_keys
file on a remote server withssh-copy-id
ssh-add
~/.ssh/config
to include:dvc init
dvc remote add remotessh ssh://<remote server>/<path>
dvc add -r remotessh --to-remote mydata
Throws: ERROR: unexpected error - Invalid private key
Expected
dvc specifies to the agent which key to use using the provided public key
Environment information
Output of
dvc doctor
:Additional Information (if any):
The text was updated successfully, but these errors were encountered: