Create, update, and delete ssh keys.
key_create(name, public_key, ...)key_rename(key, name, ...)key_delete(key, ...)
key_rename(key, name, ...)
key_delete(key, ...)
(character) The name to give the new SSH key in your account.
(character) A string containing the entire public key.
Other options passed on to low-level API methods.
(key) Key to modify.
# NOT RUN { k <- key_create("key", readLines("~/.ssh/id_rsa.pub")) k <- key_rename(k, "new_name") key_delete(k) # }
Run the code above in your browser using DataCamp Workspace