Chapter 22. ssh
22.1. ssh:ssh
22.1.1. Description
Connects to a remote SSH server
22.1.2. Syntax
ssh:ssh [options] hostname [command]
22.1.3. Arguments
| Name | Description |
|---|---|
| hostname | The host name to connect to via SSH |
| command | Optional command to execute |
22.1.4. Options
| Name | Description |
|---|---|
| --help | Display this help message |
| -P, --password | The password for remote login |
| -p, --port | The port to use for SSH connection |
| -q | Quiet Mode. Do not ask for confirmations |
| -r, --retries | retry connection establishment (up to attempts times) |
| -l, --username | The user name for remote login |
| -k, --keyfile | The private keyFile location when using key login, need have BouncyCastle registered as security provider using this flag |
22.2. ssh:sshd
22.2.1. Description
Creates a SSH server
22.2.2. Syntax
ssh:sshd [options]
22.2.3. Options
| Name | Description |
|---|---|
| --help | Display this help message |
| -b, --background | The service will run in the background |
| -p, --port | The port to setup the SSH server |
| -i, --idle-timeout | The session idle timeout in milliseconds |
| -w, --welcome-banner | The welcome banner to display when logging in |
| -n, --nio-workers | The number of NIO worker threads to use |

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.