consolidate ssh utils
[webi-installers/.git] / ssh-utils / README.md
1 ---
2 title: SSH Utils
3 homepage: https://webinstall.dev/ssh-utils
4 tagline: |
5   SSH Utils: Because --help takes to long.
6 description: |
7   SSH Utils includes shortcut commands for some common tasks, including `ssh-pubkey`, `ssh-setpass`, and `ssh-adduser`
8 ---
9
10 **ssh-pubkey**:
11
12 `ssh-pubkey` will make sure you have an SSH key, and then print it to the screen
13 and place it in `~/Downloads`.
14
15 ```bash
16 ssh-pubkey
17 ```
18
19 ```txt
20 ~/Downloads/id_rsa.johndoe.pub:
21
22 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTOhRnzDJNBNBXVCgkxkEaDM4IAp81MtE8fuqeQuFvq5gYLWoZND39N++bUvjMRCveWzZlQNxcLjXHlZA3mGj1b9aMImrvyoq8FJepe+RLEuptJe3md4EtTXo8VJuMXV0lJCcd9ct+eqJ0jH0ww4FDJXWMaFbiVwJBO0IaYevlwcf0QwH12FCARZUSwXfsIeCZNGxOPamIUCXumpQiAjTLGHFIDyWwLDCNPi8GyB3VmqsTNEvO/H8yY4VI7l9hpztE5W6LmGUfTMZrnsELryP5oRlo8W5oVFFS85Lb8bVfn43deGdlLGkwmcJuXzZfostSTHI5Mj7MWezPZyoSqFLl johndoe@MacBook-Air
23 ```
24
25 **ssh-adduser**:
26
27 Many modern web programs (`npm` and `postgres`, for example) will not function
28 correctly if run as root. `ssh-adduser` adds user `me` with the same
29 **`~/.ssh/authorized_keys`** as the `root` user, with a long random password,
30 and gives `me` `sudo` privileges.
31
32 **ssh-setpass**:
33
34 `ssh-setpass` will ask you for your old passphrase (if any) and then for the new
35 one to reset it with.