No way. /bin/true will log you out right away, and therefore you cannot start scp. I've doublechecked this yesterday, and even tried to put "exit " into the .bashrc *This* did work fine, no ssh anymore, but scp works. But! unforunatelly the user can scp an new .bashrc or use ssh and rm to remove it.
So I'd say: No way, indeed. Cheers, Marcel On 9 Jan 2002, at 21:19, Tim Quinlan wrote: > how about setting the user's shell to /bin/true. this > allows ftp, but no login shell. so it may work for scp as > well. > > ---------- Forwarded Message ---------- > Subject: scp, no ssh > Date: Wed, 9 Jan 2002 09:49:10 +0100 > From: Robert Janusz <[EMAIL PROTECTED]> > To: debian-isp@lists.debian.org > > > How to allow, for some users' IPs, only scp and no ssh? > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > an.org > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > > ------------------------------------------------------- > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > -- __ .´ `. : :' ! Enjoy `. `´ Debian/GNU Linux `- Now even on the 5 Euro banknote!