Fortinet black logo

CLI Reference

execute ssh

execute ssh

Use this command to open an SSH connection to a remote host using the specified username.

Syntax

execute ssh <user@host> [port]

<user@host>

Username@host or IP address.

username@ is optional. If not specified, the user named admin is inferred by default.

[port]

Specify a port if not the commonly used port 22.

Example

FortiADC-docs $ execute ssh admin2@192.168.0.1

FortiADC-QA #

execute ssh

execute ssh

Use this command to open an SSH connection to a remote host using the specified username.

Syntax

execute ssh <user@host> [port]

<user@host>

Username@host or IP address.

username@ is optional. If not specified, the user named admin is inferred by default.

[port]

Specify a port if not the commonly used port 22.

Example

FortiADC-docs $ execute ssh admin2@192.168.0.1

FortiADC-QA #