advertisement logo

 

A couple of days ago, I’ve encountered this error when I was trying to create a SSH tunnel from my office LAN to a remote server.

After looking for a solution, I found out that the remote SSH server must add “PermitTunnel yes” line in “/etc/ssh/sshd_config” file.

To do that, you need to:

sudo echo "PermitTunnel yes" >> /etc/ssh/sshd_config
service ssh restart

The second line is used to restart the ssh service in order to enable the changes.


Share this post

Tags: , , , , , ,

Keep updated with the latest posts, be a part of over 1,000 subscribers! : email iconSubscribe to your email

One smashing comment for this post.

  1. Dan Said:

    i believe it is:

    service sshd restart

    to restart the daemon and enable the changes

Leave a Comment

About Author

Mohammad Hafiz (mypapit)

Blogger
Alor Setar, Kedah, MALAYSIA


I work with a local university in Malaysia. I code for fun and I support Free and Open Source Software.


Visit