- Turn off password access in
/etc/ssh/sshd_config
- Turn off GSS API access in
/etc/ssh/sshd_config
- Change AuthorizedKeysPath in
/etc/ssh/sshd_config
to/ssh_keys/%u/authorized_keys
- Place public keys in
/ssh_keys/%u/authorized_keys
- NOTE: The sysadmin needs to do this manually for every user, after the user executes
ssh-copy-id
- NOTE: The sysadmin needs to do this manually for every user, after the user executes
sudo chown root:root -R /ssh_keys
sudo chmod 711 /ssh_keys
sudo chmod 711 /ssh_keys/%u
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/sha256" | |
"encoding/hex" | |
"encoding/json" | |
"io" | |
"log" | |
"net/http" | |
"os" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Writer: | |
def __init__(self, value, log: str = ""): | |
self._value = value | |
self._log = log | |
# For decorating individual functions with messages | |
@staticmethod | |
def explain(message: str): | |
def decorator(modification: callable): |