你好我现在公司打算用jumpserver管理整个集群,每个人登录服务器前需要输入jumpserver 账户密码-> OTP-> linux服务器用户 ssh key的密码,但我现在配置发现并不能ssh成功
我的配置
Host jump
HostName xx.xx.xx.xx
Port 2222
User yang
PreferredAuthentications keyboard-interactive,password
ForwardAgent yes
Host production
HostName xx.xx.xx
User yang
ProxyJump jump
IdentityFile ~/.ssh/id_ed25519
IdentitiesOnly yes
PreferredAuthentications publickey
RequestTTY no
ForwardAgent yes
当我 运行ssh production的时候,输入完jumpserver 密码和otp后会报错
acblacktea@acblackteas-MacBook-Air ~ % ssh production
yang@100.74.113.95’s password:
yang
Please Enter MFA Code.
(yang@100.74.113.95) [OTP Code]: 023346
channel 0: open failed: administratively prohibited: port forwarding is disabled
stdio forwarding failed
Connection closed by UNKNOWN port 65535
