1.1 KiB
1.1 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
esc + . - last object
ctrl + r - bash_history search
history -d 130 - delete 130 line
history -c - delete all history\
Vim
d -> ctrl + end - delete from cursor to end of file\