Possible to print message(s) before login?

Derek Frye derek at derekfrye.com
Tue Jun 13 05:27:56 EST 2006


Ah yes, this was exactly what I was looking for. Knowing that I needed a 
"banner" would have helped when parsing the source ;)

Chris Rapier wrote:
> I'm curious as to why you'd want to do this. Not that there is never any 
> reasons to do this but I'm wondering why.
> 
> 
> Derek Frye wrote:
>> Hi,
>>
>> Is there a way to print a message before the login prompt or after the 
>> login prompt but before the password prompt? This way unauthenticated 
>> users can see a small message (like "Hello!").
>>
>> I looked through the source for version 4.2 and couldn't find where 
>> the login strings are constructed and sent (except in the client 
>> software portion). Maybe all strings (like "login: ", where users 
>> enter username) are generated and encrypted in the client software in 
>> response to server packets (non-strings)? So is there even a way to 
>> send strings before successful authentication?
>>
>> Maybe this would violate the design of openssh?




More information about the openssh-unix-dev mailing list