Mac uses the private key to log in to the server
Windows login server can refer to this blog:
Centos7 server creates a new user, and creates a public key private key pair for the new user, sets up a network proxy for the ssh client, and the new user logs in to the server locally through the private key without secret
https://blog.csdn.net/zhengzaifeidelushang/article/details /114573596
One, set up a proxy
If there is a need to set up a proxy, replace it with your own according to the following command
vim /Users/家目录/.ssh/config
Host *
ProxyCommand /usr/local/bin/ncat --proxy proxy.bigdata.com:8080 --proxy-type http %h %p
Two, use the private key to log in to the server
The premise is that a public key-private key pair is generated, the private key is stored locally, and the public key is stored on the server.
ssh -i /Users/bigdata/.ssh/id_rsa [email protected] -p 22