server_connect: Connect to a server

View source: R/ssh.R

server_connectR Documentation

Connect to a server

Description

Connect to a server, make accessible to outsider and set-up for outsider interaction.

Usage

server_connect(session)

Arguments

session

ssh session, see 'ssh::ssh_connect'.

Details

This requires installation of ssh package.

Value

logical

See Also

Other public-server: server_disconnect()

Examples

library(outsider.base)

# NOT RUN
## Not run: 
if (requireNamespace("ssh", quietly = TRUE)) {
  session <- ssh::ssh_connect(host = '[INSERT HOST IP]')
  server_connect(session = session)
  # run outsider.base commands, when finished
  server_disconnect()
}

## End(Not run)

ropensci/outsider.base documentation built on June 21, 2022, 7:39 p.m.