Skip to content

How to provide additional ssh options? #155

@Kvit

Description

@Kvit

How can we provide additional options to ssh wrappers? For example:

  • location of scp.exe / sftp.exe utilities on PC
  • location of identity file / private key
  • location of known_hosts on PC
  • other options recognized by ssh/scp/sftp utilities

To make clp / sftp from Rstudio package work on windows I have to feed information about location of identity files and known_hosts. This line works for example:
ssh -i C:/Users/me/.ssh/key-do-private.ppk -o UserKnownHostsFile=C:/Users/me/.ssh/known_hosts [email protected]
But this info needs to be fed into ssh wrappers

It looks like you have a place for ssh_options() in the code, but how can we feed additional options to this function? Would it make sence to expose this function so we can populate options from R code?
https://github.com/sckott/analogsea/blob/db3c0ec407ea0c7a7cf1112d58de3fdbaa19b2e1/R/droplet-ssh.R#L59

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions