git2r (version 0.10.1)

cred_ssh_key: Create a new passphrase-protected ssh key credential object

Description

Create a new passphrase-protected ssh key credential object

Usage

cred_ssh_key(publickey, privatekey, passphrase)

## S3 method for class 'character,character,character': cred_ssh_key(publickey, privatekey, passphrase)

## S3 method for class 'character,character,missing': cred_ssh_key(publickey, privatekey, passphrase)

Arguments

publickey
The path to the public key of the credential
privatekey
The path to the private key of the credential
passphrase
The passphrase of the credential

Value

  • A S4 cred_ssh_key object

Examples

Run this code
## Create a ssh key credential object. It can optionally be
## passphrase-protected
cred_ssh_key("~/.ssh/id_rsa.pub", "~/.ssh/id_rsa")

Run the code above in your browser using DataCamp Workspace