README.md
This commit is contained in:
parent
c0fd865e59
commit
78bb5f7f00
@ -18,7 +18,6 @@ alias path='echo -e ${PATH//:/\\n}'
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# shorts
|
# shorts
|
||||||
alias c='clear'
|
alias c='clear'
|
||||||
alias q='exit'
|
alias q='exit'
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
Host hosting
|
Host hosting
|
||||||
HostName 5.187.5.178
|
HostName 5.187.5.178
|
||||||
Port 22
|
Port 22
|
||||||
|
|||||||
23
README.md
23
README.md
@ -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
|
||||||
|
```
|
||||||
Loading…
x
Reference in New Issue
Block a user