Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2000 02:10:55 -0500 (EST)
From:      Francisco Reyes <fran@reyes.somos.net>
To:        cjclark@alum.mit.edu
Cc:        "Nicolai L. Brown" <nbrown@iowaone.net>, Nicolas <list@rachinsky.de>, freebsd-questions@FreeBSD.ORG
Subject:   Re: scp only
Message-ID:  <Pine.BSF.4.21.0012120111050.1391-100000@zoraida.reyes.somos.net>
In-Reply-To: <20001209232558.J96105@149.211.6.64.reflexcom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0012120111050.1391-100000>