keisisqrl / shellinabox

Automatically exported from code.google.com/p/shellinabox
Other
0 stars 0 forks source link

shellinabox doesn't show login banner #141

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm running shellinabox on Debian Squeeze armel, and it's not displaying either 
/etc/issue or /etc/issue.net before the login prompt.  I'm running a 
shell/telnet/ssh BBS on this machine, and I have the registration instructions 
in /etc/issue.net.  Is there a way I can force it to print the contents of 
/etc/issue before executing /bin/login?

Original issue reported on code.google.com by jonathan...@gmail.com on 30 Sep 2011 at 7:42

GoogleCodeExporter commented 8 years ago
I'd also like to see this addressed.  We must have notifications displayed to 
all users.  I've tried with LOGIN and SSH.  Both to no avail.

Daemon command:
/usr/sbin/shellinaboxd -u shellinabox -g shellinabox 
--cert=/var/lib/shellinabox --port=443 --user-css 
Normal:+black-on-white.css,Reverse:-white-on-black.css --disable-ssl-menu -s 
/:SSH

Thanks!

Joel

Original comment by j...@cryregarder.com on 22 Oct 2012 at 4:10

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This isn't the best answer but it does work okay for now under the ssh service. 
 I will caveat that it only triggers after the username has been entered and 
will show one or two other messages as part of the ssh process.

Edit shellinabox/service.c and change ~ line 166 == " -oLogLevel=QUIET %%s@%s", 
host); to " -oLogLevel=INFO %%s@%s", host);
Once you have made the change you will need to recompile (make/make install)

Original comment by konce...@gmail.com on 7 Dec 2013 at 12:03