root
This commit is contained in:
parent
46f71c2ae6
commit
2dc306201f
13
README.md
13
README.md
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user