> For the complete documentation index, see [llms.txt](https://docs.strongdm.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.strongdm.com/references/cli/admin/ssh/add.md).

# sdm admin ssh add

```shell
NAME:
   sdm admin ssh add - add a new SSH public key server and install the public key on the host

USAGE:
   sdm admin ssh add [command options] <server-name> <user@host>[:port]

OPTIONS:
   --identity value, -i value  private key to use temporarily while adding server
   --accept, --yes, -y         accept host fingerprint during add
   --return-public-key, -p     returns the public key in the standard output
   --healthcheck, -c           runs reachability and health checks on the new server
   --port-forwarding           defines whether clients are allowed to use port forwarding with this server
   --port-override value       port profile override (default: -1)
   --tags value                tags e.g. 'key=value,...'
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.strongdm.com/references/cli/admin/ssh/add.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.
