copy https authorized-keys

Last Updated : Nov 20, 2024 |

This command uses HTTPS to download a file containing a user’s public keys used for SSH public key authentication.

Syntax

copy https authorized-keys <username> <URL> [transfer-type]

Parameters

Parameter

Description

Possible Values

Default Values

username

Branch Gateway local username created with username command.

URL

The URL contains the following elements in order:

  • https://

  • username (optional) followed by @

  • webserver host:- IPv4 address, IPv6 address, or Fully Qualified Domain Name of the remote HTTP or HTTPS server

  • :webserver port (optional)

  • /file path

transfer-type

The transfer type depending on the type of verification. The options are:

  • secure: verifies the certificate and hostname, applicable for https only

  • secure

  • certificate: verifies the web server TLS certificate, applicable for https only

  • certificate

  • unsecure: no TLS certificate verification required

  • unsecure

User level

admin

Context

general

Example

copy https authorized-keys root https://example.com/keys/root_authorized_keys