Secure Shell (SSH) Client for R

Connect to a remote server over SSH to transfer files via SCP, setup a secure tunnel, or run a command or script on the host while streaming stdout and stderr directly to the client.



  • Bugfix release: fix hardcoded string passwords


  • Import key management functions from the new 'credentials' package
  • Refactor password callback to avoid jumping on error
  • Fix a bug with reading the new openssh pem keys
  • Disconnect session immediately on startup/authentication errors
  • Raise a warning when the GC collects an ssh session which is still connected.
  • Rename ssh_info() to ssh_session_info()
  • ssh_tunnel() now closes listen port when interrupted while waiting


  • Fix for security problem with latest openssh-server
  • Windows/Mac: update libssh to 0.8.6
  • Use new 'askpass' package for password and passphrase prompts
  • Use new ssh_session_is_known_server() api on libssh 0.8 and up
  • Fix bug that would write key to known_hosts for each connection
  • Add support for parsing ipv6 ip-address


  • Windows/Mac: update libssh to 0.8.3
  • Fix GCC 8 compiler warnings
  • Don't use deprecated function on libssh 0.8+


  • Initial release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.8.0 by Jeroen Ooms, 6 months ago (website), (devel)

Browse source code at

Authors: Jeroen Ooms [aut, cre]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports credentials, askpass

Suggests knitr, rmarkdown, spelling, sys, testthat, mongolite

System requirements: libssh >= 0.6.0 (the original, not libssh2)

Imported by neo4jshell, openSkies, plumberDeploy, qsub.

Suggested by DatabaseConnector, analogsea, bsub, gdiff, outsider, outsider.base, resourcer, vmr.

See at CRAN