commands

ssh — OpenSSH client

Connect to an authorized SSH server; -G evaluates configuration without connecting. Verify host identity and user authorization separately. Usually returns remote command status, or 255 on SSH error. Use a fresh private workspace; live operations are VM-only.

Formal Syntax & Structure

linux syntaxlinux
ssh [OPTIONS] DESTINATION [COMMAND]

Parameters & Attributes

NameTypeDescription
DESTINATIONoperandHost or user@host
-GoptionPrint effective configuration
-FoptionSelect client configuration file

Return Value

exit status and output

Connect to an authorized SSH server; -G evaluates configuration without connecting. Verify host identity and user authorization separately. Usually returns remote command status, or 255 on SSH error.

Working Example

Example Snippetlinux
ssh -G -F ./ssh_config.sample lab-server.example
Linux Reference