machine: machine

Description Usage Arguments Value Examples

View source: R/machine.r

Description

Remote machine configuration settings.

Usage

1
2
3
4
machine(hostname, user, exec.type = .pbd_env$RPC.LI$exec.type,
  args = .pbd_env$RPC.LI$args, pport = .pbd_env$RPC.LI$pport,
  priv.key = .pbd_env$RPC.LI$priv.key,
  priv.key.ppk = .pbd_env$RPC.LI$priv.key.ppk)

Arguments

hostname

the server ip or host name.

user

user id for logging to the server. If none is supplied, then the system user name will be used instead.

exec.type

either "ssh" or "plink" in character. Windows will force to use "plink".

args

further arguments to "ssh" or "plink" for connecting to the server in addition to port, user id, and host name.

pport

ssh port opened on the server.

priv.key, priv.key.ppk

location of the private key for user authentication, the file will be checked first then -i priv.key will be added to args when the file exists. priv.key.ppk is only used when plink is called.

Value

An object of class machine.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# note: not my actual aws url
myaws <- machine("ec2-1-2-3-4.compute-1.amazonaws.com", user="my_aws_username")

# if you don't specify 'user', we use your host machine's user name
myvm <- machine("192.168.1.10")

## End(Not run)

snoweye/pbdRPC documentation built on May 30, 2019, 6:06 a.m.