Open an SSH tunnel, prompting for passwords as needed

open_tunnel(remote_host, user = NULL, password = NULL,
  tunnel_dir = "~/.pecan/tunnel/", wait.time = 15,
  tunnel_script = "~/pecan/web/sshtunnel.sh")

Arguments

remote_host

name of remote server to connect to (e.g. geo.bu.edu)

user

username on remote_host

password

password on remote_host

tunnel_dir

directory to store tunnel file in, typically from settings$host

wait.time

how long to give system to connect before deleting password (seconds)

tunnel_script

Path to sshtunnel.sh script file for opening tunnel

Value

numeric giving ssh PID if configured, otherwise logical with TRUE = success