SSH
客户端
ssh-keygen -o -t rsa -b 4096 -C "email@example.com"cat ~/.ssh/id_rsa.pub-b 密钥长度,单位bit
-t 使用的加密算法,可选[ dsa | ecdsa | ed25519 | rsa ]
-C 备注信息,在git上使用需要添加邮箱地址
-f 输出路径,默认为~/.ssh/id_rsaHost github.com
HostName github.com
IdentityFile ~/.ssh/id_rsa
Port 22
Host example.com
IdentityFile ~/.ssh/exampleQ&A
如何配置免密ssh登录?
如何配置免密root登录?
如何配置ssh代理?
最后更新于