README.md

This commit is contained in:
TheK4n 2021-08-29 03:42:11 +03:00
parent c0fd865e59
commit 78bb5f7f00
3 changed files with 24 additions and 3 deletions

View File

@ -18,7 +18,6 @@ alias path='echo -e ${PATH//:/\\n}'
# shorts # shorts
alias c='clear' alias c='clear'
alias q='exit' alias q='exit'

View File

@ -1,4 +1,3 @@
Host hosting Host hosting
HostName 5.187.5.178 HostName 5.187.5.178
Port 22 Port 22

View File

@ -1 +1,24 @@
# BashConfig # 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
```