[DGD] Re: 1.2.82
Erwin Harte
harte at is-here.com
Mon Feb 23 19:45:08 CET 2004
On Mon, Feb 23, 2004 at 11:27:19AM -0600, Erwin Harte wrote:
> On Mon, Feb 23, 2004 at 06:05:22PM +0100, Felix Croes wrote:
> > This release has changes to the kernel library only.
> >
> > ftp://ftp.dworkin.nl/pub/dgd/experimental/patches/1.2.81-1.2.82.gz
> >
> >
> > The mudlib changes have only one purpose: to support a minimal
> > implementation of ssh for DGD. You can find it here:
> >
> > ftp://ftp.dworkin.nl/pub/dgd/lib/sshd-0.1.tar.gz
>
> It'll listen on the first binary port and it helps if you create the
> account (meaning, give it a password) before trying to SSH in.
>
> To test it with for instance the OpenSSH software, be sure to use the
> '-T' parameter so that your client doesn't try to allocate a
> pseudo-tty.
And a (very) small contribution:
==============================================================================
--- ssh.c.orig 2004-02-23 12:43:33.000000000 -0600
+++ ssh.c 2004-02-23 12:40:19.000000000 -0600
@@ -1,3 +1,4 @@
+# include <status.h>
# include <kernel/kernel.h>
# include <kernel/user.h>
@@ -766,6 +767,10 @@
if (conn::receive_message(nil, name) != MODE_DISCONNECT &&
query_user() &&
conn::receive_message(nil, password) != MODE_DISCONNECT) {
+ userauth_banner("\n" +
+ status()[ST_VERSION] + " (ssh)\n" +
+ "\n" +
+ (name == "admin" ? "# " : "> "));
send_packet(make_mesg(SSH_MSG_USERAUTH_SUCCESS));
break;
}
==============================================================================
Which gives you your initial prompt and lets you know where you logged
in, in case you'd forgotten already. ;-)
Erwin.
--
Erwin Harte <harte at is-here.com>
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list