Limit OpenSSH access in Linux

By | November 7, 2008

By using “Match” in the OpenSSH configuration file we can limit the right a certain user, group or host enjoys. Add the Match directive in your sshd_config followed by a criteria (User, Group, Address or Host). The following example limits TCP and X11 port forwarding for the jack user:

AllowTcpForwarding no

X11Forwarding no

Match User jack

AllowTcpForwarding yes

X11Forwarding yes

One thought on “Limit OpenSSH access in Linux

  1. www.edit.com

    Hey!, thanks for the good “penSSH access in Linux | Tips4Linux.com” post. Would it be possible, that i can write a story about this post in our local newspaper? I would be really happy if i can do this and i will give you a link from a german blog too. Please answer. Greetings Goldpreise

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *