sshd banner


Forum: Other Help Topics
Topic: sshd banner
started by: alpinekid

Posted by alpinekid on July 22 2005,17:47
I can add another banner to the ssh login stuff. it shows up before the password request. I did that.

How do I either replace or remove the one that comes after password.
Its just too much stuff?

Al

Posted by friedgold on July 25 2005,19:56
I'm slightly confused by your question because I'm not sure what you mean by
Quote
I can add another banner to the ssh login stuff. it shows up before the password request. I did that.


If you want to change message that appears after logging through ssh edit /etc/motd. Or is this what you have already tried?

Posted by alpinekid on July 25 2005,21:09
I added a banner by creating a file named banner.txt in the /etc/ssh directory. This file showed up before the login.

I will try the motd file.

....

Just tried it. YEP that was the file I was looking for.

Thanks.
Al  :D

Posted by friedgold on July 25 2005,22:26
Quote
I added a banner by creating a file named banner.txt in the /etc/ssh directory


Ah, cool - didn't realise you could do that

Posted by alpinekid on July 25 2005,22:51
way cool, we helped each other out.

Thanks.

Posted by Agus on Dec. 13 2005,21:29
the motd message will be displayed if you have the /etc/ssh/sshd_config: PrintMotd yes

Does anyone ever tried using automatic ssh authentication with authorized_keys2 ?  I got it to work on Solaris and KNOPPIX 3.4, but not DSL.

Posted by Zucca on June 08 2006,21:37
Quote (alpinekid @ July 25 2005,19:09)
I added a banner by creating a file named banner.txt in the /etc/ssh directory. This file showed up before the login.

:angry:

Argh! That won't work with my sshd.

Any ideas?

Posted by Zucca on June 09 2006,05:13
Oh I just got it working.

Quote
    Banner  In some jurisdictions, sending a warning message before authenti-
    cation may be relevant for getting legal protection.  The con-
    tents of the specified file are sent to the remote user before
    authentication is allowed. This option is only available for
    protocol version 2.  By default, no banner is displayed.

I edited /etc/ssh/sshd_config and added a line to it: Banner /etc/ssh/banner. And of cource created that banner file.

Posted by dartarrow on June 13 2006,10:27
Quote (friedgold @ July 25 2005,15:56)
If you want to change message that appears after logging through ssh edit /etc/motd. Or is this what you have already tried?


I cant seem to edit the motd, is there a particular reason? Says I have a read-only file system. But I did (try to) change the /KNOPPIX in mtab to rw from the original ro. Still doesnt seem to help.  :(

Posted by mikshaw on June 13 2006,13:50
KNOPPIX is a compressed ISO9660 filesystem, which is read-only by design (like a cd session).  You will need to remove the /etc/motd symlink and replace it with the real motd file.  You will then need to add /etc/motd to your backup, or to a myDSL extension (same thing as a backup file, but with a different file name), in order to persist after a reboot.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.