河汉清且浅,牵牛敦而纯

 

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

 

posted on 2024-01-26 20:33  伊索  阅读(3)  评论(0编辑  收藏  举报