search

Home  >  Q&A  >  body text

linux - ssh反向隧道建立时,permission denied

在建立ssh反向隧道建立时, 内网服务器已经向公网服务器发起了转发。 但公网服务器输入ssh localhost -p 19999 的时候permission denied。
以下是截图:

我是参照以下网址上写的方法来做的。 求大神支招,不胜感激。
http://my.oschina.net/Thinkeryjgfn/blog/177283

另外,我是用secureCRT从自己的电脑上连到公网服务器的。 不知道是否会有影响?

PHPzPHPz2937 days ago828

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 11:42:08

    Check if your /etc/ssh/sshd_config has this line
    PermitRootLogin no
    If so, root is prohibited from logging in through ssh. You can also execute the ssh -v parameter to see the specific debug information.

    reply
    0
  • Cancelreply