27 lines
376 B
Markdown
27 lines
376 B
Markdown
+++
|
|
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
|
|
``` |