added old posts from ghost
This commit is contained in:
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user