24 lines
308 B
Markdown
24 lines
308 B
Markdown
# BashConfig
|
|
|
|
## SSH:
|
|
|
|
Create ssh key on local device
|
|
```bash
|
|
ssh-keygen
|
|
```
|
|
1. Save to ~/.ssh
|
|
2. Copy local "~/.ssh/id_rsa.pub" key to remote "~/.ssh/authorized_keys"
|
|
|
|
|
|
### ~/.ssh/config:
|
|
```
|
|
Host host_name
|
|
HostName ip
|
|
Port 22
|
|
User root
|
|
IdentityFile ~/.ssh/id_rsa
|
|
```
|
|
|
|
```bash
|
|
ssh host_name
|
|
``` |