From owner-freebsd-questions Mon Dec 11 23: 7:13 2000 From owner-freebsd-questions@FreeBSD.ORG Mon Dec 11 23:07:11 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from sanson.reyes.somos.net (freyes.static.inch.com [216.223.199.224]) by hub.freebsd.org (Postfix) with ESMTP id 0103837B402 for ; Mon, 11 Dec 2000 23:07:06 -0800 (PST) Received: from zoraida.reyes.somos.net (zoraida.reyes.somos.net [10.0.0.15]) by sanson.reyes.somos.net (8.9.3/8.9.3) with ESMTP id CAA72974; Tue, 12 Dec 2000 02:01:34 -0500 (EST) (envelope-from fran@reyes.somos.net) Date: Tue, 12 Dec 2000 02:10:55 -0500 (EST) From: Francisco Reyes To: cjclark@alum.mit.edu Cc: "Nicolai L. Brown" , Nicolas , freebsd-questions@FreeBSD.ORG Subject: Re: scp only In-Reply-To: <20001209232558.J96105@149.211.6.64.reflexcom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 9 Dec 2000, Crist J. Clark wrote: > On Sun, Dec 10, 2000 at 12:50:26AM -0600, Nicolai L. Brown wrote: > > On Sat, 9 Dec 2000, Nicolas wrote: > > > I'm sorry but none of your solutions works. /bin/false as shells > > > denies any access via ssh (including scp) ~/.login containing logout > > > could be circumvented by starting another command (e.g. /bin/sh) via > > > ssh. Nicolas > It does work like you expect. However, > > $ ssh bubbles "ls -l /" > cjc@bubbles.cjclark.org's password: > total 2906 > -r--r--r-- 1 root wheel 4735 Mar 20 2000 COPYRIGHT A couple of pointers from reading the manpage: ** If using SSH 2 one can use -N. -N >Do not execute a remote command. >This is usefull if you just want >to forward ports (protocol version 2 only). ** rc file >If $HOME/.ssh/rc exists, runs it; >else if /etc/ssh/sshrc ex-ists, >runs it; otherwise runs xauth(1). I don't see how the rc file could be used though. I could not get the logout command to work from a csh script. "Exit" didn't seem to work either. Maybe making the rc file run on a jail? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message