Skip to contents

Adds a host name to the ~/.ssh/known_hosts file to allow subsequent SSH access. Requires ssh-keyscan on the system PATH.

Usage

step_add_to_known_hosts(host = "github.com")

Arguments

host

[string]
The host name to add to the known_hosts file, default: github.com.

Examples

dsl_init()
#>  Creating a clean tic stage configuration
#>  See `?tic::dsl_get` for details

get_stage("before_deploy") %>%
  add_step(step_add_to_known_hosts("gitlab.com"))

dsl_get()
#> ── tic configuration summary ───────────────────────────────────────────────────
#> ── Stage: before_deploy ────────────────────────────────────────────────────────
#>  step_add_to_known_hosts("gitlab.com")