Linux - SSH-别名登陆

Linux - SSH-别名登陆

编辑 ~/.ssh/config,添加:

1
2
3
4
5
6
7
8
9
10
11
12
# 设置别名登陆
Host harry
# 主机地址
HostName 120.78.69.82
# 端口,非必填
Port 22
# 用户名
User root
# 登陆的公钥文件,非必须
# IdentityFile ~/.ssh/id_rsa.pub
# 只接受 SSH Key 登陆
IdentitiesOnly yes
# linux

Comments

Your browser is out-of-date!

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

×