Search

Chapter 22. ssh

download PDF

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

NameDescription

hostname

The host name to connect to via SSH

command

Optional command to execute

22.1.4. Options

NameDescription

--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

NameDescription

--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

Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.