ssh client
Contents
只用ipv6连接
从ubuntu 17.04开始,发现当配置在config里面的ssh server,主动连接的时候,只解析ipv4地址,对于使用ipv6就讨厌了,所以增加1
AddressFamily inet6
定期包活,每隔60秒发一个保活包
1
ServerAliveInterval 60
多个ssh连接,共用一个socket
1
2ControlMaster auto
ControlPath ~/.ssh/master-%r%h:%p使用ed25519作为密钥算法
ssh-keygen -t ed25519
会生成:id_ed25519和id_ed25519_pub
在IdentifyFile ~/.ssh/id_ed25519
1 | Host example |