SSH配置多密钥登录


修改 SSH 服务配置文件 #~/.ssh/config

Host *
    Compression yes
    ServerAliveInterval 60
    ServerAliveCountMax 20

Host centos
    HostName 0.0.0.0
    User root
    IdentityFile ~/.ssh/root.pem