pubkey_filter | R Documentation |
From a vector of ssh public keys, return those that are of a given type.
pubkey_filter(keys, type)
keys |
Vector of strings representing ssh public keys. |
type |
Character string defining the ssh public key type that will pass
the filter. Relevant values are strings returned by
|
A vector of strings representing (filtered) public keys.
## make ssh public key strings rsa_pubkey <- openssl::write_ssh(openssl::rsa_keygen()$pubkey) dsa_pubkey <- openssl::write_ssh(openssl::dsa_keygen()$pubkey) ## filter keys by type pubkey <- pubkey_filter(c(rsa_pubkey, dsa_pubkey), "rsa") identical(pubkey, rsa_pubkey)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.