ssh_tunnel | R Documentation |
Opens a port on your machine and tunnel all traffic to a custom target host via the SSH server, for example to connect with a database server behind a firewall.
ssh_tunnel(session, port = 5555, target = "rainmaker.wunderground.com:23")
session |
ssh connection created with |
port |
integer of local port on which to listen for incoming connections |
target |
string with target host and port to connect to via ssh tunnel |
This function blocks while the tunnel is active. Use the tunnel by connecting to
localhost:5555
from a separate process. Each tunnel can only be used once and will
automatically be closed when the client disconnects. It is intended to tunnel a single
connection, not as a long running proxy server.
Other ssh:
scp
,
ssh_connect()
,
ssh_credentials
,
ssh_exec
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.