Liking cljdoc? Tell your friends :D

pallet.crate.ssh-key

Crate functions for manipulating SSH-keys

Crate functions for manipulating SSH-keys
raw docstring

authorize-keyclj

(authorize-key user public-key-string & {:keys [authorize-for-user]})

Authorize a public key on the specified user.

Authorize a public key on the specified user.
sourceraw docstring

authorize-key-for-localhostclj

(authorize-key-for-localhost user
                             public-key-filename
                             &
                             {:keys [authorize-for-user] :as options})

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.

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.
sourceraw docstring

configclj

(config host
        key-value-map
        &
        {:keys [user config-file] :or {user (:username (admin-user))}})

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 config-file path.

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 `config-file` path.
sourceraw docstring

generate-keyclj

(generate-key user
              &
              {:keys [type filename passphrase no-dir comment]
               :or {type "rsa" passphrase ""}
               :as options})

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

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
sourceraw docstring

install-keyclj

(install-key user key-name private-key-string public-key-string)

Install a ssh private key.

Install a ssh private key.
sourceraw docstring

public-keyclj

(public-key user & {:keys [filename dir type] :or {type "rsa"} :as options})

Returns the public key for the specified remote user. By default it returns the user's id_rsa key from ~user/.ssh/id_rsa.pub.

You can specify a different key type by passing :type. This assumes the public key has a .pub extension.

Passing a :filename value allows direct specification of the filename.

:dir allows specification of a different location.

Returns the public key for the specified remote `user`. By default it returns
the user's id_rsa key from `~user/.ssh/id_rsa.pub`.

You can specify a different key type by passing :type. This assumes the public
key has a `.pub` extension.

Passing a :filename value allows direct specification of the filename.

`:dir` allows specification of a different location.
sourceraw docstring

ssh-default-filenamesclj

source

user-ssh-dirclj

(user-ssh-dir user)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close