ropensci / ssh

Native SSH client in R based on libssh
https://docs.ropensci.org/ssh
Other
127 stars 21 forks source link

SSH key management #3

Closed jeroen closed 5 years ago

jeroen commented 6 years ago

@jennybc asks if we can make key management easier. We can easily let the use generate a keypair, though I am not sure if we should write to ~/.ssh/id_rsa or use a custom location.

It would also be nice to support something like ssh-copy-id to let users store the pubkey that was used to authenticate the current session into ~/.ssh/authorized_keys on the server. Does libssh support something like this @cryptomilk?

jennybc commented 6 years ago

I think inspecting current keys is also useful. In Happy Git, we try to figure out if someone has keys before creating a new pair.

cryptomilk commented 6 years ago

We do not exactly have a function for something like ssh-copy-id, but well it is possible to implement something like that. However libssh offers a PKI API to do all sorts of key operations.

jeroen commented 5 years ago

The new credentials package contains utilities to assist with client side key management.