tunnel: Set up SSH tunneling

Description Usage Arguments Value Examples

View source: R/tunnel.R

Description

Set up SSH tunneling

Usage

1
2
tunnel(remote_server, server_username, remote_port = 3306,
  local_port = 9000)

Arguments

remote_server

The URL or IP address of the remote server.

server_username

Username to log into the remote server.

remote_port

The port to connect to on the remote server. 3306 is the default port used by MySQL.

local_port

The port to connect to on the local machine.

Value

A connection object of class "tunnel".

Examples

1
2
3
4
5
6
## Not run: 
sshTunnel = tunnel(remote_server, server_username,
                   remote_port, local_port)
closeTunnel(sshTunnel)

## End(Not run)

wmay/tunnelr documentation built on May 4, 2019, 9:45 a.m.