added old posts from ghost

This commit is contained in:
paul-loedige
2024-12-03 15:38:07 +01:00
parent 7ac2af94ca
commit 052470509f
15 changed files with 301 additions and 3 deletions
+27
View File
@@ -0,0 +1,27 @@
+++
date = '2022-09-04T15:39:45'
draft = false
title = 'SSH Basics'
type='post'
tags = ['Misc']
+++
## Generate Keypair
```bash
ssh-keygen
```
## Remote Login with Key
```bash
ssh-copy-id <Host>@<Remote>
```
### Disable Access via Password
modify `/etc/ssh/sshd_config` so that it includes
```
PasswordAuthentication no
```
#### enable changes
```
systemctl restart ssh
```