This commit is contained in:
TheK4n 2021-08-30 22:28:23 +03:00
parent 46f71c2ae6
commit 2dc306201f

View File

@ -3,14 +3,14 @@
## SSH: ## SSH:
Create ssh key on local device Create ssh key on local device
```bash
ssh-keygen `ssh-keygen`
```
1. Save to ~/.ssh 1. Save to `~/.ssh`
2. Copy local "~/.ssh/id_rsa.pub" key to remote "~/.ssh/authorized_keys" 2. Copy content of `~/.ssh/id_rsa.pub` key to remote `~/.ssh/authorized_keys`
### ~/.ssh/config: **~/.ssh/config:**
``` ```
Host host_name Host host_name
HostName ip HostName ip
@ -19,6 +19,7 @@ Host host_name
IdentityFile ~/.ssh/id_rsa IdentityFile ~/.ssh/id_rsa
``` ```
*Examples:*
```bash ```bash
ssh host_name ssh host_name
sftp host_name sftp host_name