|
|||||||||||
|
Re: Banner messages - avoiding on "ssh host cmd"
From: Brian Hatch <secure-shell(at)ifokr.org>
Date: Sat Mar 01 2003 - 00:51:05 EST > I fully agree about warning banners when a person uses ssh to
but if there is a way to access the machine sans warning, then the whole legal purpose is thwarted, unfortunately. > Is there any way to stop or throwaway the warning banner from
If using a Bourne shell variant (bash, ksh, zsh, sh, etc) then just discard stderr: ssh hostGottaWarn command 2>/dev/null Of course if you need stderr of the command, you're going to need to try something else, like ssh hostGottaWarn command 2>&1 | egrep -v "(strings|that|match|banner)" which of course redirects stderr to stdout, causing an entirely different problem. If you're using csh or tcsh or then I don't remember how or if you can redirect stderr. Instead, get a real shell - csh variants should be burned to the ground.
--
Brian Hatch "Knock, knock."
Systems and "Who's there?"
Security Engineer "Kosh."
www.buildinglinuxvpns.net "Kosh who?"
"Gesundheit."
Every message PGP signed
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:55 EDT |
||||||||||
|
|||||||||||