[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] xymon ssh scan
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] xymon ssh scan
- From: chap (at) anastigmatix.net
- Date: Fri, 11 Jun 2010 12:21:36 -0400
- Importance: Normal
- References: <1CC2019D6A90EC449020595534777D4F8A6EE21A37 (at) VPEXCH03.purdue.lcl> <201006110835.16511.bgmilne (at) staff.telkomsa.net> <1503724d6f25803abd77252cecb7ff59.squirrel (at) ghost.securenet-server.net> <188e628b1a7613f14709520d2105e012.squirrel (at) epperson.homelinux.net>
- User-agent: SquirrelMail/1.4.20
> On Fri, June 11, 2010 09:30, chap (at) anastigmatix.net wrote:
> Just give the identity a login shell of /bin/true in /etc/passwd and you
> won't have to be concerned about commands from a shell at all.
Yes, that works too, if you will create a new dedicated identity (or
reuse one that already has true for a shell). command="/bin/true"
in authorized_keys will work in any event (though something like
/bin/echo OK might give a more positive confirmation).
The line in authorized_keys should also disallow all the extra
goodies like port forwarding, X tunneling, and so on.
-Chap