26 lines
609 B
Markdown
26 lines
609 B
Markdown
# Meine Public Keys
|
|
## Hardware Keys
|
|
Swiss Token2
|
|
Solokey USB C
|
|
Solokey USB A
|
|
OnlyKey
|
|
|
|
Die Schlüssel können mit ssh-keygen -K wieder hergestellt werden. Dabei entstehen der private und der öffentliche Schlüssel im aktuellen Verzeichnis neu.
|
|
|
|
Downloadlink
|
|
|
|
```
|
|
cd
|
|
mkdir -p ~/.ssh
|
|
chmod 700 ~/.ssh
|
|
cd .ssh
|
|
wget https://git.rwolff.homelinux.net/rpwolff/public-keys/raw/branch/master/authorized_keys
|
|
mv authorized_keys ~/.ssh
|
|
chmod 600 ~/.ssh/authorized_keys
|
|
```
|
|
|
|
```
|
|
sed -i "s/.*PasswordAuthentication.*/PasswordAuthentication no/g" /etc/ssh/sshd_config
|
|
sudo systemctl restart ssh
|
|
```
|