ssh config file

快速配置ssh config,从此无痛快速连接服务器

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# vim ~/.ssh/config

# write to file.
Host custom_host_name
HostName custom.com
User username
Port 10022
IdentityFile ~/.ssh/id_rsa

# save, then quit vim

sudo chmod 400 ~/.ssh/config

# test
ssh -Tv -F ~/.ssh/config qec7

Comments

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×