Learn R Programming

vmr (version 0.0.6)

vmrConfigSSH: Configure ssh

Description

Configure ssh credential.

Usage

vmrConfigSSH(
  vmr,
  ssh_user = "vagrant",
  ssh_pwd = "vagrant",
  port = "",
  ssh_private_key_path = ""
)

Value

an updated vmr object

Arguments

vmr

a vmr object

ssh_user

the ssh user (default 'vagrant')

ssh_pwd

the ssh pwd if any (default 'vagrant')

port

the ssh port (default empty)

ssh_private_key_path

path to the private ssh key to use (default empty, use insecure vagrant key)

Details

by default vmr use vagrant as user/password and insecure key for ssh connection. This behavior can be change here, by setting an another user and/or ssh keys. Calling with no arguments will disable this option. Be careful, ssh using only password may result of vmr functions bugs.

Examples

Run this code
if (FALSE) {
vmr <- vmrConfigSSH(ssh_user = "John", ssh_pwd = "d0e", port = "22")
vmr <- vmrConfigSSH(ssh_user = "John", private_key_path = "/path/to/private/key/")
}

Run the code above in your browser using DataLab