Files
sshconfig/README.md
T
2026-05-10 10:34:37 +02:00

26 lines
950 B
Markdown

# Public SSH Keys
This repository serves as a central storage for my public SSH keys. They can be quickly and easily downloaded to new servers via `curl` or `wget` to set up passwordless SSH login.
## Quick Smart Import
This command will download the keys, append only the **new** ones, and keep your comments intact. It will not create duplicates if run multiple times.
```bash
curl -sL [https://git.1337733.xyz/martin/sshconfig/raw/branch/main/import_keys.sh](https://git.1337733.xyz/martin/sshconfig/raw/branch/main/import_keys.sh) | bash
```
## curl
```bash
echo "" >> ~/.ssh/authorized_keys && curl -s https://git.1337733.xyz/martin/sshconfig/raw/branch/main/authorized_keys >> ~/.ssh/authorized_keys
```
## wget
```bash
echo "" >> ~/.ssh/authorized_keys && wget -qO- https://git.1337733.xyz/martin/sshconfig/raw/branch/main/authorized_keys >> ~/.ssh/authorized_keys
```
# Set File Permissions
```bash
chmod 600 ~/.ssh/authorized_keys
```