Fortinet black logo

CLI Reference

config firewall ssh host-key

config firewall ssh host-key

SSH proxy host public keys.

config firewall ssh host-key
    Description: SSH proxy host public keys.
    edit <name>
        set hostname {string}
        set ip {ipv4-address-any}
        set nid [256|384|...]
        set port {integer}
        set public-key {var-string}
        set status [trusted|revoked]
        set type [RSA|DSA|...]
    next
end

config firewall ssh host-key

Parameter

Description

Type

Size

hostname

Hostname of the SSH server.

string

Maximum length: 255

ip

IP address of the SSH server.

ipv4-address-any

Not Specified

name

SSH public key name.

string

Maximum length: 35

nid

Set the nid of the ECDSA key.

option

-

Option

Description

256

The NID is ecdsa-sha2-nistp256.

384

The NID is ecdsa-sha2-nistp384.

521

The NID is ecdsa-sha2-nistp521.

port

Port of the SSH server.

integer

Minimum value: 0 Maximum value: 4294967295

public-key

SSH public key.

var-string

Maximum length: 32768

status

Set the trust status of the public key.

option

-

Option

Description

trusted

The public key is trusted.

revoked

The public key is revoked.

type

Set the type of the public key.

option

-

Option

Description

RSA

The type of the public key is RSA.

DSA

The type of the public key is DSA.

ECDSA

The type of the public key is ECDSA.

ED25519

The type of the public key is ED25519.

RSA-CA

The type of the public key is from RSA CA.

DSA-CA

The type of the public key is from DSA CA.

ECDSA-CA

The type of the public key is from ECDSA CA.

ED25519-CA

The type of the public key is from ED25519 CA.

config firewall ssh host-key

SSH proxy host public keys.

config firewall ssh host-key
    Description: SSH proxy host public keys.
    edit <name>
        set hostname {string}
        set ip {ipv4-address-any}
        set nid [256|384|...]
        set port {integer}
        set public-key {var-string}
        set status [trusted|revoked]
        set type [RSA|DSA|...]
    next
end

config firewall ssh host-key

Parameter

Description

Type

Size

hostname

Hostname of the SSH server.

string

Maximum length: 255

ip

IP address of the SSH server.

ipv4-address-any

Not Specified

name

SSH public key name.

string

Maximum length: 35

nid

Set the nid of the ECDSA key.

option

-

Option

Description

256

The NID is ecdsa-sha2-nistp256.

384

The NID is ecdsa-sha2-nistp384.

521

The NID is ecdsa-sha2-nistp521.

port

Port of the SSH server.

integer

Minimum value: 0 Maximum value: 4294967295

public-key

SSH public key.

var-string

Maximum length: 32768

status

Set the trust status of the public key.

option

-

Option

Description

trusted

The public key is trusted.

revoked

The public key is revoked.

type

Set the type of the public key.

option

-

Option

Description

RSA

The type of the public key is RSA.

DSA

The type of the public key is DSA.

ECDSA

The type of the public key is ECDSA.

ED25519

The type of the public key is ED25519.

RSA-CA

The type of the public key is from RSA CA.

DSA-CA

The type of the public key is from DSA CA.

ECDSA-CA

The type of the public key is from ECDSA CA.

ED25519-CA

The type of the public key is from ED25519 CA.