Trapping banner displayed by sshd during ssh / scp?
From: Kevin Pease (kevin.pease_at_fmr.com)
Date: 10/27/03
- Previous message: Charles Alexander: "Re: SSH X11 Forwarding problem"
- Next in thread: Hactar: "Re: Trapping banner displayed by sshd during ssh / scp?"
- Reply:(deleted message) Hactar: "Re: Trapping banner displayed by sshd during ssh / scp?"
- Reply: Darren Tucker: "Re: Trapping banner displayed by sshd during ssh / scp?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 27 Oct 2003 09:59:30 -0500
Hi everyone,
I'm hoping someone can help me with this annoyance that I'm having with
ssh & scp. I've written a small program which does the following:
1) uses ssh (with rsa authentication, no password needed) to execute
two commands on a remote system.
2) scp's a dozen-or-so files to a remote system
3) uses ssh (rsa authentication again) to execute another two commands
on the remote system.
I'm running it through cron, and I'm having difficulty figuring out how
to trap the login banner displayed by the remote system's sshd. The other
output of my program is being sent to me via email, and I'd like to discard
the banner (because it appears a bunch of times, and it's useless,
repetitive information for the purposes of my program). Essentially, I get
two emails:
One from the cron daemon on my local system containing the un-trapped
output from my program:
****************************************
* Remote System Banner *
****************************************
repeated numerous times
The other email contains actual information I want.
Now, I know that you can configure the sshd on the remote system to turn
off display of that banner, but I've been told by my system admins that this
is against corporate policy, since it contains a legal notice indicating,
essentially, "if you aren't authorized to be here, you're toast." Is there
some _other_ way of trapping this output? Or do I need to set up a mail
filter and redirect these emails to /dev/null?
Operating environment is open ssh (server + client), on Solaris 8 (both
systems), and the program I'm using to do this is a very simple korn shell
script;
Any thoughts or help would be greatly appreciated.
Thanks,
Kevin Pease
- Previous message: Charles Alexander: "Re: SSH X11 Forwarding problem"
- Next in thread: Hactar: "Re: Trapping banner displayed by sshd during ssh / scp?"
- Reply:(deleted message) Hactar: "Re: Trapping banner displayed by sshd during ssh / scp?"
- Reply: Darren Tucker: "Re: Trapping banner displayed by sshd during ssh / scp?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|