~/.ssh/config Essentials

Linux Logo

~/.ssh/config Essentials

Edit

sudo nano ~/.ssh/config

Samples

Host test
 User user
 HostName 10.10.10.10
 LocalForward 8000 127.0.0.1:8000
Host test.com
 User user
 HostName 10.10.10.10
 AddressFamily inet
 IdentityFile ~/.ssh/id_rsa.pub
 LocalForward 8000 127.0.0.1:8000
 Port 2222