Other Help Topics :: sshd banner



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.

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?

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.

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.  :(

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.
Next Page...
original here.