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