Skip to content

re-use existing ssh credentials #284

@cboettig

Description

@cboettig

Hey @stewid ,

I'm probably missing something obvious here; but I see that I can create a new credential with cred_ssh_key, but I cannot figure out how to just get a credential object for an existing credential. I tried hacking it with:

cred <- new("cred_ssh_key", publickey = "~/.ssh/id_rsa.pub", privatekey = "~/.ssh/id_rsa", passphrase = "XXX")

but that just gives me an error

Error in 'git2r_clone': Failed to authenticate SSH session: Unable to open public key file

it looks like that error could be due to the function not performing tilde expansion, but full paths to the shh key just give me a different error:

Error in 'git2r_clone': Failed to authenticate SSH session: Callback returned error

and in any event I'm guessing I'm not supposed to be calling new to create my credential object. any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions