powered by
Adds to known hosts, installs private key, and tests the connection. Chaining step_install_ssh_keys(), step_add_to_known_hosts() and step_test_ssh(). The travis::use_travis_deploy() and use_tic() functions encode a private key as an environment variable for use with this function.
step_install_ssh_keys()
step_add_to_known_hosts()
step_test_ssh()
travis::use_travis_deploy()
use_tic()
step_setup_ssh( name = "TRAVIS_DEPLOY_KEY", host = "github.com", url = paste0("git@", host), verbose = "-v" )
[string] Name of the environment variable and the target file, default: "TRAVIS_DEPLOY_KEY".
[string]
"TRAVIS_DEPLOY_KEY"
[string] The host name to add to the known_hosts file, default: github.com.
known_hosts
github.com
[string] URL to establish SSH connection with, by default git@github.com
git@github.com
[string] Verbosity, by default "-v". Use "-vvv" for more verbosity.
"-v"
"-vvv"
Other steps: step_add_to_drat(), step_add_to_known_hosts(), step_build_pkgdown(), step_do_push_deploy(), step_hello_world(), step_install_pkg, step_install_ssh_keys(), step_push_deploy(), step_run_code(), step_setup_push_deploy(), step_test_ssh(), step_write_text_file()
step_add_to_drat()
step_build_pkgdown()
step_do_push_deploy()
step_hello_world()
step_install_pkg
step_push_deploy()
step_run_code()
step_setup_push_deploy()
step_write_text_file()
# NOT RUN { dsl_init() get_stage("script") %>% add_step(step_setup_ssh(host = "gitlab.com")) dsl_get() # }
Run the code above in your browser using DataLab