[root@linux-node1 conf]# ssh -p 2222 root@192.168.56.11
root@192.168.56.11's password:
Last login: Sun Mar 6 17:29:42 2016 from linux-node1.example.com
[root@linux-node2 ~]# Connection to 192.168.56.11 closed by remote host.
访问的host一定要是证书中CN(commonname), 不然会提示:
curl: (51) Unable to communicate securely with peer: requested domain name does not match the server’s certificate.