1.6 KiB
1.6 KiB
BashConfig
Content
Project description
Bash config files
SSH
Create ssh key on local device
ssh-keygen- Save to
~/.ssh - Enter passphrase
- Copy content of
~/.ssh/id_rsa.pubkey to remote~/.ssh/authorized_keys
Add aliases for ssh to ~/.ssh/config:
Host host_name
HostName ip
Port 22
User root
IdentityFile ~/.ssh/id_rsa
Using aliases:
ssh host_name
sftp host_name
Tips
Bash
| Command | Description |
|---|---|
Esc + . |
Last object |
Ctrl + R |
bash_history search |
Vim
| Command | Description |
|---|---|
Ctrl + [ |
Analog Esc |
d -> ctrl + end |
Delete from cursor to end of file |
u |
Cancel last command |
ctrl+r |
Cancel cancel |
22G |
Go to line 22 |