334 B
334 B
BashConfig
SSH:
Create ssh key on local device
ssh-keygen
- Save to
~/.ssh - Copy content of
~/.ssh/id_rsa.pubkey to remote~/.ssh/authorized_keys
~/.ssh/config:
Host host_name
HostName ip
Port 22
User root
IdentityFile ~/.ssh/id_rsa
Examples:
ssh host_name
sftp host_name