delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org> |
Subject: | Re: Limit access via openssh? |
Date: | Wed, 14 Nov 2007 15:02:49 -0600 |
Lines: | 33 |
Message-ID: | <fhfnpp$hd$1@ger.gmane.org> |
References: | <loom DOT 20071114T140507-70 AT post DOT gmane DOT org> |
Mime-Version: | 1.0 |
User-Agent: | Thunderbird 2.0.0.6 (Windows/20070728) |
In-Reply-To: | <loom.20071114T140507-70@post.gmane.org> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Tony Benham wrote: > This isn't strictly a cygwin question, but I'm using cygwin ssh implement= ation. > I have an external user that uses ssh & public key to open a tunnel to my > windows server running cygwin. They use the tunnel to connect to an apache > server inside our network. This all works fine. What I want to do is to l= imit > their access to only the apache server, and prevent them opening terminal= s on > our server ? > Is this possible ? Yes. The way to do it is using the options on the authorized_keys file, see 'man 8 sshd' section 'AUTHORIZED_KEYS FILE FORMAT'. The format of ~/.ssh/authorized_keys is: TYPE KEY COMMENT you use the format with options: options TYPE KEY COMMENT where, in your case, options are: no-pty,no-X11-forwarding,no-agent-forwarding,permitopen=3D"host:port" (change host:port to the values used by your tunnel). --=20 Ren=E9 Berber -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |