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
| Name | Type | Description |
|---|---|---|
| DESTINATION | operand | Host or user@host |
| -G | option | Print effective configuration |
| -F | option | Select 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