forked from dworkin/lpcssh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.ssh
60 lines (45 loc) · 2.44 KB
/
README.ssh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
SSH login for DGD, version 0.4
Version 0.1 written by Felix A. Croes <[email protected]>
Released into the public domain.
DGD 1.2.105 or later is required, and either the kernel library or Melville.
KERNEL LIBRARY INSTALLATION:
- Move these files to /usr/System of your mudlib.
- If you already have a file /usr/System/initd.c, add the following line
to its create function:
compile_object("~/sys/kernel_sshd");
Otherwise, just rename the supplied file initd.ssh to initd.c.
- By default, sshd will listen on the first binary port. To change this,
edit the line in sys/kernel_sshd.c that looks like this:
userd->set_binary_manager(0, this_object());
and change the 0 to a indicate a different port.
- The sshd object will set the ticks limit to 3,000,000 for System. This is
about the mininum required to perform the public key crypto functions.
If you already have a higher tick limit for your mudlib, remove from
sys/sshd.c the line that looks like this:
rsrc::rsrc_set_limit("System", "ticks", 3000000);
- Run the command 'ssh-keygen -t dsa' and save the files in the directory
'keys'. The created files should be named 'id_dsa' and 'id_dsa.pub'. If
you skip this step, default cryptographic keys included with this release
will be used.
- In your DGD configuration file, make sure that the array_size limit is at
least 4000.
- Start DGD, and login using the following command:
ssh -T -p 6048 <hostname>
-T means not to use a pseudo-tty, -p 6048 connects to the binary port which
is 6048 by default (this can be changed by editing the mud.dgd configuration
file) and <hostname> is the name of the host to connect to. If you're
running ssh on the same host as DGD, just use 'localhost'.
- Though users without programming rights in the kernel library do not have
a password, ssh will still prompt them for one -- just hit the return key.
- You won't see anything while logging in (that includes the room you login
to and the players in it).
- The file ~username/.ssh/authorized_keys (within the mudlib) is used for
authentication, if it exists.
MELVILLE INSTALLATION:
- Make a subdirectory ssh in the mudlib /system directory, and move these
files into it.
- in the file include/ssh.h, change '# define KERNEL_GLUE' into
'# define MELVILLE_GLUE'.
- Apply the diffs in diffs/melville.
- As with the kernel library, it only works well for pre-existing users and
you won't see anything when you login.