LoginSignup
14
10

More than 5 years have passed since last update.

OSXでssh ポートフォワードするときに channel 1: open failed: administratively prohibited: open failed”

Posted at

OSXからサーバーLinuxにポートフォワードする時にハマったのでメモ

基本

  • /etc/ssh/sshd_configのAllowTcpForwarding はyesにする service sshd restart
  • SELinuxは無効にする

これをしてもエラーが治らなかった・・・

ssh -L 14040:hostname:4040 root@hostname

hostnameは/etc/hostsに記述しているもの

ssh -L 14040:XXX.XXX.XXX.XXX:4040 root@hostname

XXX.XXX.XXX.XXX はIPアドレス
にすれば何故かうまくいった・・。

14
10
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
10