Host *
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
Host volcengine-server
HostName huoshan.shinerio.site
User root
# 关键:指定该服务器对应的公钥路径
IdentityFile ~/.ssh/low_level.pub
# 关键:只使用 IdentityFile 指定的密钥,防止尝试 1Password 中其他无关密钥
IdentitiesOnly yes
使用指定公钥对应的私钥登录指定Host主机,紧支持使用ssh -v volcengine-server命令登录
Host *
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
Host huoshan.shinerio.site
HostName huoshan.shinerio.site
User root
# 关键:指定该服务器对应的公钥路径
IdentityFile ~/.ssh/low_level.pub
# 关键:只使用 IdentityFile 指定的密钥,防止尝试 1Password 中其他无关密钥
IdentitiesOnly yes
使用指定公钥对应的私钥登录指定Host主机,支持使用ssh root@huoshan.shinerio.site命令登录
评论