Skip to Content

channel 0: open failed: administratively prohibited: open failed

On trying to SSH using the command  ,  the following errors are thrown in the command line

ssh -J bastion_host_server   remote_host_server

channel 0: open failed: administratively prohibited: open failed

stdio forwarding failed

kex_exchange_identification: Connection closed by remote host

 
Solution: It is because AllowTCPForwarding is set to "No"  /etc/sshd/sshd_config  in jumphost for security reasons. This is a recommended security setting.

#$ /etc/ssh/sshd_config

AllowTcpForwarding no