cred_ssh_key {git2r} | R Documentation |
Create a new passphrase-protected ssh key credential object
cred_ssh_key(publickey = ssh_path("id_rsa.pub"), privatekey = ssh_path("id_rsa"), passphrase = character(0))
publickey |
The path to the public key of the
credential. Default is |
privatekey |
The path to the private key of the
credential. Default is |
passphrase |
The passphrase of the credential. Default is
|
A list of class cred_ssh_key
with entries:
The path to the public key of the credential
The path to the private key of the credential
The passphrase of the credential
Other git credential functions: cred_env
,
cred_token
, cred_user_pass
## Not run: ## Create a ssh key credential object. It can optionally be ## passphrase-protected cred <- cred_ssh_key(ssh_path("id_rsa.pub"), ssh_path("id_rsa")) repo <- repository("git2r") push(repo, credentials = cred) ## End(Not run)