Establishes an SSH connection. This step doesn't fail if the connection cannot be established, but prints verbose output by default. It is useful for troubleshooting deployment problems.
Arguments
- url
[string]
URL to establish SSH connection with, by defaultgit@github.com- verbose
[string]
Verbosity, by default"". Use-vor"-vvv"for more verbosity.- private_key_name
string
Only needed when deploying from builds on GitHub Actions. If you have set a custom name for the private key during creation of the SSH key pair via tic::use_ghactions_deploy()] oruse_tic(), pass this name here.
See also
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_session_info(),
step_setup_push_deploy(),
step_setup_ssh(),
step_write_text_file()
Examples
dsl_init()
#> ✔ Creating a clean tic stage configuration
#> ℹ See `?tic::dsl_get` for details
get_stage("script") %>%
add_step(step_test_ssh(verbose = "-vvv"))
#> Superclass TicStep has cloneable=FALSE, but subclass TestSSH has cloneable=TRUE. A subclass cannot be cloneable when its superclass is not cloneable, so cloning will be disabled for TestSSH.
dsl_get()
#> ── tic configuration summary ───────────────────────────────────────────────────
#> ── Stage: script ───────────────────────────────────────────────────────────────
#> ▶ step_test_ssh(verbose="-vvv")
