Getting rid of return message in ssh

Rhugga Harper rhugga at gmail.com
Fri Nov 11 23:35:02 UTC 2005


In your sshd_config file on the target system, set these as follows:

PrintMotd no
PrintLastLog no

As a sidenote, there are ways to do what you want to do w/o changing these
options. (I prefer to have PrintLastLog enabled)

I use perl and the Net::SSH:Perl module to monitor my systems, and this
module gives you flexibility on how you handle stdout, stdin, exit status.
There are raw modes where you can read/write directly to the sshd socket
connection.

-rhugga


On 11/11/05, Mike Ault <mike at ault.cc> wrote:
>
> Hi All,
>
>
>
> I need to be able to go from one host to another via ssh and not get back
> any message other than the prompt for the second machine. If I get back
> anything at all the process I am trying to run will fail. How do I turn
> off
> the cute little "Last Login" message? I already have it transparent as far
> as passwords, just need to get rid of this last bit and I am ready!
>
>
>
> Mike
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



More information about the redhat-list mailing list