eb ssh <environment-name>

Connect to a Linux Amazon EC2 instance in your environment using Secure Shell

Arguments

NameDescription
environment-nameThe name of the environment to connect to

Options

NameDescription
-i, --instanceThe ID of the instance to connect to
-n, --numberThe number of the instance to connect to by number
-o, --keep_openLeave port 22 open on the security group after the SSH session ends
--commandExecute a shell command on the specified instance instead of starting an SSH session
--customSpecify an SSH command to use instead of 'ssh -i keyfile'. Do not include the remote user and hostname
--setupChange the key pair assigned to the environment's instances
--forceOpen port 22 to incoming traffic from 0.0.0.0/0 in the environment's security group, even if the security group is already configured for SSH
--timeout <minutes>Set number of minutes before the command times out