Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: sshd banner, Changing the SSHD banner< Next Oldest | Next Newest >
Agus
Unregistered






Posted: Dec. 13 2005,21:29 QUOTE

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.
Back to top
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: June 08 2006,21:37 QUOTE

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?


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: June 09 2006,05:13 QUOTE

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.


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
dartarrow Offline





Group: Members
Posts: 3
Joined: April 2006
Posted: June 13 2006,10:27 QUOTE

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.  :(
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: June 13 2006,13:50 QUOTE

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.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
9 replies since July 22 2005,17:47 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: sshd banner

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code