Crate functions for manipulating SSH-keys
Authorize a public key on the specified user.
Authorize a user's public key on the specified user, for ssh access to localhost. The :authorize-for-user option can be used to specify the user to who's authorized_keys file is modified.
Update an ssh config file. Sets the configuration for
host to be that given
by the key-value-map. Optionally allows specification of the
user whose ssh
config file is to be modified, and the full
Generate an ssh key pair for the given user, unless one already exists. Options are: :filename path -- output file name (within ~user/.ssh directory) :type key-type -- key type selection :no-dir true -- do note ensure directory exists :passphrase -- new passphrase for encrypting the private key :comment -- comment for new key
Install a ssh private key.
Returns the public key for the specified remote
user. By default it returns
the user's id_rsa key from
You can specify a different key type by passing :type. This assumes the public
key has a
Passing a :filename value allows direct specification of the filename.
:dir allows specification of a different location.