ssh - Cloud Foundry CLI Reference Guide


NAME

ssh - SSH to an application container instance

USAGE

cf ssh APP_NAME [-i INDEX] [-c COMMAND]... [-L [BIND_ADDRESS:]PORT:HOST:HOST_PORT] [--skip-host-validation] [--skip-remote-execution] [--disable-pseudo-tty | --force-pseudo-tty | --request-pseudo-tty]

OPTIONS

--app-instance-index, -i

Application instance index (Default: 0)

--command, -c

Command to run. This flag can be defined more than once.

--disable-pseudo-tty, -T

Disable pseudo-tty allocation

--force-pseudo-tty

Force pseudo-tty allocation

-L

Local port forward specification. This flag can be defined more than once.

--request-pseudo-tty, -t

Request pseudo-tty allocation

--skip-host-validation, -k

Skip host key validation

--skip-remote-execution, -N

Do not execute a remote command

SEE ALSO

allow-space-ssh, enable-ssh, space-ssh-allowed, ssh-code, ssh-enabled