dotfiles/README.md
2021-08-30 04:26:02 +03:00

25 lines
323 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
sftp host_name
```