|
3 | 3 | This file contains some general directions and thoughts on troubleshooting the code in this repo. This is not meant |
4 | 4 | to be a comprehensive troubleshooting guide and is only a jumping off point. |
5 | 5 |
|
| 6 | +## `make generate` refuses to overwrite an existing key |
| 7 | + |
| 8 | +In order to force `make generate` to overwrite the existing CA key (note that this will delete the existing CA |
| 9 | +key which means kssh will not work with any servers it currently works with), simply run: |
| 10 | + |
| 11 | +``` |
| 12 | +FORCE_WRITE=true make generate |
| 13 | +``` |
| 14 | + |
6 | 15 | ## kssh is slow, but it works |
7 | 16 |
|
8 | 17 | When kssh starts, it has to search every team you are in for a `kssh-client.config` file which specifies the information |
@@ -31,8 +40,19 @@ user than you are using for kssh. |
31 | 40 |
|
32 | 41 | ## SSH rejects the connection |
33 | 42 |
|
34 | | -This likely means that you have not configured the SSH server correctly. Review the directions in README.md and ensure |
35 | | -that you have followed the steps correctly ([sshca.md](./sshca.md) also has some additional information on how SSH CAs work that may |
| 43 | +This likely means that you have not configured the SSH server correctly. Confirm that on the SSH server you are trying to access: |
| 44 | + |
| 45 | +* `/etc/ssh/ca.pub` has an SSH public key in it |
| 46 | +* `/etc/ssh/auth_principals/username-of-ssh-user` has the name of your Keybase team in it (or multiple comma separated keybase teams) |
| 47 | +* `/etc/ssh/sshd_config` has the below two lines somewhere in it: |
| 48 | + |
| 49 | +``` |
| 50 | +TrustedUserCAKeys /etc/ssh/ca.pub |
| 51 | +AuthorizedPrincipalsFile /etc/ssh/auth_principals/%u |
| 52 | +``` |
| 53 | + |
| 54 | +If that all looks good, review the getting started directions and ensure that you have followed the steps correctly |
| 55 | +([sshca.md](./sshca.md) also has some additional information on how SSH CAs work that may |
36 | 56 | be helpful). If you would like to follow an example, see the code in the `tests/` directory which contains integration |
37 | 57 | tests (focus on Dockerfile-sshd for an example SSH server setup). If none of that works, the best strategy is to run |
38 | 58 | SSH on the server on an alternate port and review the debug information. On the server run `/usr/sbin/sshd -dd -D -p 2222` |
@@ -101,3 +121,8 @@ It may be useful to define aliases in your bashrc to simplify this: |
101 | 121 | alias kscp='kssh --provision && scp -F ~/.ssh/kssh-config' |
102 | 122 | alias krsync='kssh --provision && rsync -e "ssh -F $HOME/.ssh/kssh-config"' |
103 | 123 | ``` |
| 124 | + |
| 125 | +## Other |
| 126 | + |
| 127 | +For any other issues, please open a Github issue or ping @dworken on Keybase! We want to make this project as reliable |
| 128 | +as possible so please let us know if there are any ways we can improve the project. |
0 commit comments