# ssh

## Syntax

```
ssh [<user>@]<host> [<command>]
```

## Syntax Description

<table><thead><tr><th width="203">Keyword</th><th>Description</th></tr></thead><tbody><tr><td>user</td><td>(Optional) The user name to use on the remote host.</td></tr><tr><td>host</td><td>The name or IP address of the remote host.</td></tr><tr><td>command</td><td>(Optional) A command to run on the remote host.</td></tr></tbody></table>

## Defaults

The default user name is "admin".

## Usage Guidelines

This commands establishes a Secure Shell (SSH) session to a remote host. Both public key and password authentication are supported. Public key authentication is attempted using the local ssh client key. If public key authentication fails, password authentication is used.

The ssh client maintains a list of public keys for the hosts that have been previous contacted. If the key received from the remote host does not match the stored key, the connection is aborted. Stored host keys can be edited with the [configure known-hosts](/island-router-cli-2.3.2/commands/configure-known-hosts.md) command or deleted with the [clear ssh known-hosts](/island-router-cli-2.3.2/commands/clear-ssh-known-hosts.md) command.

If command is given, the specified string is passed to the remote system for execution instead of invoking a login shell.

## Examples

```
ssh jane@server.example.com
```

## Related Commands

{% content-ref url="/pages/fMECIDqCfpq8ddiHEAVc" %}
[clear ssh client-keys](/island-router-cli-2.3.2/commands/clear-ssh-client-keys.md)
{% endcontent-ref %}

{% content-ref url="/pages/3iByrhLFgNniteiLpR0x" %}
[configure known-hosts](/island-router-cli-2.3.2/commands/configure-known-hosts.md)
{% endcontent-ref %}

{% content-ref url="/pages/ZB3D3FpaqxVZ41b2qa48" %}
[show config known-hosts](/island-router-cli-2.3.2/commands/show-config-known-hosts.md)
{% endcontent-ref %}

{% content-ref url="/pages/z00bUJDdrrrRHRNwwhy9" %}
[clear ssh known-hosts](/island-router-cli-2.3.2/commands/clear-ssh-known-hosts.md)
{% endcontent-ref %}

{% content-ref url="/pages/kIOwTaIXBHfo5Vzi53Wd" %}
[clear ssh host-keys](/island-router-cli-2.3.2/commands/clear-ssh-host-keys.md)
{% endcontent-ref %}

{% content-ref url="/pages/3k1byephVRA7qCis1tXd" %}
[telnet](/island-router-cli-2.3.2/commands/telnet.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.islandrouter.com/island-router-cli-2.3.2/commands/ssh.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
