sshpass -p '' ssh -p 22 user@ip # tcp protocol = "tcp" # ipv4 ,inet6 AddressFamily inet # 端口转发 AllowTcpForwarding yes GatewayPorts no # 密钥认证 ssh-keygen -t rsa cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys