12-14-2012, 09:04 AM | #1 |
Connoisseur
Posts: 56
Karma: 31830
Join Date: Oct 2012
Location: Australia
Device: Aura HD, after a train ate my Glo
|
I can't make Telnet work, halp~
Hi,
I'm trying to add Telnet access to my Glo, but for some reason it doesn't work. inetd starts, ftp server works perfectly, but telnet just closes connection immediately after trying to connect. This is what I've done: .kobo/koboplugins.ini Code:
Telnet On=Plugin::executeSystemCmd("/bin/sh /mnt/onboard/.kobo/telnet.sh") .kobo/telnet.sh Code:
#!/bin/sh mkdir -p /dev/pts mount -t devpts devpts /dev/pts /usr/sbin/inetd /mnt/onboard/.kobo/inetd.conf Code:
21 stream tcp nowait root /bin/busybox ftpd -w -S / 23 stream tcp nowait root /bin/busybox telnetd -i Thanks ~ |
12-14-2012, 09:17 AM | #2 |
Connoisseur
Posts: 64
Karma: 7786
Join Date: Jan 2012
Device: Kobo Touch
|
I'm not sure but it might be that the home folder for the user you're trying to log in as doesn't exist.
|
12-14-2012, 10:28 AM | #3 | |
Connoisseur
Posts: 56
Karma: 31830
Join Date: Oct 2012
Location: Australia
Device: Aura HD, after a train ate my Glo
|
Quote:
However, I think it's not the case (hard to be sure without actually being logged in): /etc/passwd configures root's home directory as simply / Other guides for setting up telnet don't mention any root home directory's manipulation either. Can you think of a way to check if home directory might be the problem? I'm personally suspecting /dev/pts right now: the script I used creates it and mounts it, but I see fstab is *also* mounting it. Is this expected? Using ftp, I do see /dev/pts as "/dev/pts?" (question mark in the file name). Is that expected? Last edited by sysKin; 12-14-2012 at 10:33 AM. |
|
12-14-2012, 12:39 PM | #4 | |
Zealot
Posts: 100
Karma: 470830
Join Date: Nov 2012
Location: Berlin
Device: Nook Simple Touch, Kobo Aura H2O, Kobo Libra 2
|
Quote:
total 0 crw------- 1 root root 136, 0 Dec 14 17:27 0 FWIW, I tried something similar a couple of days ago, with the same result. The wiki page method of enabling telnet works, though. But, clearly, having a telnet server running without a root password isn't a winning long-term proposition. So I generated a password hash with mkpasswd and inserted it into /etc/passwd. (No passwd program on the box). Last edited by xor_; 12-14-2012 at 06:44 PM. |
|
12-14-2012, 11:10 PM | #5 | |
Connoisseur
Posts: 56
Karma: 31830
Join Date: Oct 2012
Location: Australia
Device: Aura HD, after a train ate my Glo
|
Quote:
My only other linux device at home is my router, let's see if it has mkpasswd... Last edited by sysKin; 12-14-2012 at 11:17 PM. |
|
12-15-2012, 05:44 AM | #6 | ||
Zealot
Posts: 100
Karma: 470830
Join Date: Nov 2012
Location: Berlin
Device: Nook Simple Touch, Kobo Aura H2O, Kobo Libra 2
|
Quote:
a) First I tried starting telnet through the plugin, which didn't work. Same symptom as you had, connection closing immediately. Then I did it exactly as specified in the Wiki page, i.e., starting it through /etc/inittab. That worked. b) In general it's not a very good idea to have a telnetd runnning without having set a root password. Imagine using your Kobo in some random open wifi spot... Big security risk. (It's still a security risk with a password, BTW, since telnet passwords are transferred unencrypted. I will try to get dropbear SSH running) Quote:
Last edited by xor_; 12-15-2012 at 05:59 AM. |
||
12-15-2012, 07:25 AM | #7 | ||
Connoisseur
Posts: 56
Karma: 31830
Join Date: Oct 2012
Location: Australia
Device: Aura HD, after a train ate my Glo
|
Quote:
Quote:
[edit] alrighty, I think I got it: mounting /dev/pts was broken. It seems like it works great from rcS, but not when spawned from manual script (at least not the way I explained in first post). Now that I did what the wiki says for rcS, and my .sh is just starting inetd, it works! Last edited by sysKin; 12-15-2012 at 07:33 AM. |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 Make my Reader work | dienton | Sony Reader Dev Corner | 0 | 02-07-2012 08:04 PM |
Firmware Update I have the US 2.5 bin but can't make it work! Please help | leodavilgen | Amazon Kindle | 14 | 05-15-2010 09:02 PM |
iLiad Reader - cannot make it work | dicky.woollard | Introduce Yourself | 2 | 01-06-2009 08:46 AM |
Avantgo: Can't Make It Work! | Sculptedstylus | Reading and Management | 2 | 02-24-2006 02:11 PM |