| 45 | |
| 46 | === Connection Problems === |
| 47 | |
| 48 | When working on geeblox (or probably any server we do not have console access too), it's possible using freepuppet-helper to block ssh access to the server. Since monkeysphere configuration files get loaded before the monkeysphere packages get installed, the ssh config can expect the monkeysphere and without it will fail. In order to avoid this, '''you should keep a live ssh session on the remote machine at all times'''. If you do lock yourself out, but still have a live session running, modify the following files to grant ssh access. |
| 49 | |
| 50 | '''/etc/ssh/sshd_config''' make sure you have a section that looks like this: |
| 51 | |
| 52 | {{{ |
| 53 | RSAAuthentication yes |
| 54 | |
| 55 | PubkeyAuthentication yes |
| 56 | |
| 57 | # AuthorizedKeysFile /var/lib/monkeysphere/authorized_keys/%u |
| 58 | AuthorizedKeysFile /root/.ssh/authorized_keys |
| 59 | }}} |
| 60 | |
| 61 | You can also add password access by setting "PasswordAuthentication yes". |
| 62 | |
| 63 | If '''/root/.ssh/config''' has anything in it, comment out those lines. Then run: |
| 64 | |
| 65 | {{{ |
| 66 | /etc/init.d/ssh reload |
| 67 | }}} |
| 68 | |
| 69 | That should give you ssh access again. |