feat: add device antje

This commit is contained in:
dancingCycle 2022-03-31 21:13:06 +02:00
parent 308b1a23cf
commit e80762516a
4 changed files with 16 additions and 2 deletions

View File

@ -2,6 +2,7 @@
## Devices
* [Antje](devices/antje.md)
* [Cloud Server](devices/cloud-server.md)
* [tpt60](devices/tpt60.md)

4
devices/antje.md Normal file
View File

@ -0,0 +1,4 @@
# Cloud Server
* [SSH Server](doc/ssh-server.md)
* [SSH Public Key Authentication](doc/ssh-pub-key-auth.md)

View File

@ -15,6 +15,7 @@ sudo vi /etc/ssh/sshd_config
* in this file, make sure the following options are set as follows
```
PasswordAuthentication yes
PermitRootLogin no
PubkeyAuthentication yes
#GSSAPIAuthentication yes
@ -57,6 +58,12 @@ ssh -p<tbd> <user>@<host name>
* if you completed public key authentication successfully,
you may savely close the terminal/shell running the open password-based login
* revert the password changes in ```ssh_config``` if you are srcurity conscious\
```
sudo vi /etc/ssh/sshd_config
PasswordAuthentication yes
```
## Links
[How to Fix SSH Failed Permission Denied (publickey)](https://phoenixnap.com/kb/ssh-permission-denied-publickey)

View File

@ -8,15 +8,17 @@ sudo -l
sudo apt-get update
sudo apt-get install openssh-server --no-install-recommends
systemctl status sshd
ss -tupln
systemctl list-unit-files | grep enabled | grep ssh
```
* set default port to ```<tbd>```, disable PermitRootLogin using
* set default port to ```<sshd port number>```, disable PermitRootLogin using
```
sudo vi /etc/ssh/sshd_config
sudo systemctl restart sshd
````
* check port configuration
```
ss -tupln|grep <sshd port number>
## Public Key Authentication