Browse Source

Update 'README.md'

master
c? 2 months ago
parent
commit
1b7a496d0a
1 changed files with 15 additions and 28 deletions
  1. +15
    -28
      README.md

+ 15
- 28
README.md View File

@@ -2,57 +2,44 @@

This is a place where I store the id_rsa.pub files for all of my computers. An `authorized_keys` file can easily be generated and installed via the `./install` script.

The master copy of this repo is stored safely in [drg git](https://git.drg.li/coltondrg/ssh-keystore/) but mirrors are available at [GitGud](https://gitgud.io/coltondrg/ssh-keystore/) and [GitHub](https://github.com/coltondrg/ssh-keystore). There is also an http-only mirror of the repo, along with a pre-generated `authorized_keys` file at [security.coltondrg.com](https://security.coltondrg.com/ssh/).
The canonical version of this repository is https://git.coltondrg.com/ssh-keystore. Mirrors are available at GitHub, GitLab, and others, but the original URL should always be used for everyday sync!

## Quick installation
The static version is still available at https://security.coltondrg.com/ssh, if you must setup on a computer where you can't run git or execute scripts. This service may be removed at any time, completely at random, because I feel like it or accidentally broke it, and I won't bother to fix it.

### Using git

##### From drg git
## quick install
clone, cd, install
```sh
git clone https://git.drg.li/coltondrg/ssh-keystore.git
git clone https://git.coltondrg.com/ssh-keystore.git
cd ssh-keystore
./install
```

##### From GitGud
```sh
git clone https://gitgud.io/coltondrg/ssh-keystore.git
cd ssh-keystore
./install
```

##### From GitHub
```sh
git clone https://github.com/coltondrg/ssh-keystore.git
cd ssh-keystore
./install
```

##### Updating
#### quick update
cd, install
```sh
cd ssh-keystore
./install --pull
```

The install script also supports cron. By running it with `--cron`, it will automatically fetch the latest commit and install without confirmation.

### Using curl/wget
### static authorized_keys
Download from security.coltondrg.com using curl:

##### From security.coltondrg.com via curl
```sh
curl -O https://security.coltondrg.com/ssh/authorized_keys
cp authorized_keys ~/.ssh/authorized_keys
```
or wget:

##### From security.coltondrg.com via wget
```sh
wget https://security.coltondrg.com/ssh/authroized_keys
cp authorized_keys ~/.ssh/authorized_keys
```
copy into ~/.ssh/ to install:

```sh
cp authorized_keys ~/.ssh/authorized_keys
```
For updates, simply repeat the process.

### Other notes

In the extras directory you'll find keys that are not included in the authorized_keys file generated by the installer script, but are kept here for dexterity anyway. You can also find an example of a postinstall script you can use to extend the functionality of the installer script, including to add some of these extra keys to the generated authorized_keys file.
In the extras directory you'll find keys that are not included in the authorized_keys file generated by the installer script, but are kept here for dexterity anyway. Don't install them, they're not necessarily secure and are not audited as frequently as the others. There is also a mobile directory in which the keys for my Termux profile on my Android phones are stored. Don't install those either, the keys were generated and stored on Android phones. The RNG was probably influenced by the Chinese, plus I don't update my phones all that often.

Loading…
Cancel
Save