| Current Path : /var/www/html/mmishra/mm/ |
| Current File : /var/www/html/mmishra/mm/profile |
Another solution would be to only allow port forwarding to specififc users: From SSH: The definitive guide Port forwarding can be globally enabled or disabled in sshd. This is done with the serverwide configuration keyword AllowTcpForwarding in /etc/sshd_config. The keyword may have the value yes (the default, enabling forwarding) or no (disabling forwarding): # SSH1, SSH2, OpenSSH AllowTcpForwarding no In addition, SSH2 has the following options: # SSH2 only AllowTcpForwardingForUsers AllowTcpForwardingForGroups The syntax of these is the same as for the AllowUsers and AllowGroups options. [Section 5.5.2.1, "Account access control"] They specify a list of users or groups that are allowed to use port forwarding; the server refuses to honor port forwarding requests for anyone else. Note that these refer to the target account of the SSH session, not the client username (which is often not known). http://askubuntu.com/questions/48129/how-to-create-a-restricted-ssh-user-for-port-forwarding