Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-11-2023, 06:57 PM   #1
hepyrian
Junior Member
hepyrian began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2023
Device: K4
Usbnet connection timed out

Hey all,

I've been scouring the forums trying to find a solution to this problem for the last 2 days but nobody seems to have the right answer, so hopefully we can figure this out.

I'm working on a silver K4 trying to just get SSH with USBnet set up so that I can do kindleberry pi stuff later.

*The Kindle is jailbroken
*KUAL is installed and working
*Usbnet is installed and properly, appears in Linux as a usb0 networking device.
*using sudo ifconfig usb0 192.168.15.201 I can properly set up the IP

However, when I go to ssh root@192.168.15.244 every single time it comes back with the error ssh: connect to host 192.168.15.244 port 22: Connection timed out

I am not trying to use wifi, just a USB connection. Other threads I have seen have covered connection refusals but mine seems to work but never actually establish the connection. When I try to ping it I get the result PING 192.168.15.244 (192.168.15.244) 56(84) bytes of data. and then terminal just holds for a long time.

If anyone has any tips on how to establish the connection let me know, I am at a loss here.
hepyrian is offline   Reply With Quote
Old 09-11-2023, 07:04 PM   #2
hepyrian
Junior Member
hepyrian began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2023
Device: K4
If it helps, this is my /usbnet/etc/config file


Quote:
#!/bin/sh
#
# $Id: config 9680 2013-08-09 20:13:06Z NiLuJe $
#

# WARNING: Take note that we're essentially a shell script, se we absolutely *MUST* use UNIX line endings!
# WARNING: To avoid leaving your system in an undefined state,
# do *NOT* modify this file while usb over ethernet is enabled!
# (That means when the the auto enable feature is in use, too!)

# Tweak these to match your setup (IPv4 only, no hostname aliases)
# NOTE: The K4 has a specific default
HOST_IP=192.168.15.201
KINDLE_IP=192.168.15.244

# Allow SSH over WiFi
# NOTE: If you set this to true, the SSHD *WILL* check your passwords!
# Make sure you know your root password, or auth via shared keys!
# Leave it to false on non-WiFi devices
K3_WIFI="false"

# Don't switch to Ethernet over USB, and only launch SSHD
# NOTE: Make sure you're able to properly login over SSH before enabling this...
# It's obviously only useful with WiFi devices, so leave to false on non-WiFi devices
K3_WIFI_SSHD_ONLY="false"

# Use OpenSSH instead of dropbear (somewhat faster login)
# NOTE: OpenSSH *WILL* check your passwords!
# Make sure you know your root password, or auth via shared keys!
USE_OPENSSH="false"

# Let volumd handle the low-level stuff (module switching)
# Might help if you get stuck with the "USB Drive Mode" screen even while in usbnet mode,
# especially on some devices... (K4, I'm looking at you!)
USE_VOLUMD="true"

# Don't let dropbear print the banner at each login
QUIET_DROPBEAR="false"

# Use a custom NIC field for the MAC adresses.
# Will mostly be of use to people needing to plug multiple Kindles on the same computer/network.
TWEAK_MAC_ADDRESS="false"
hepyrian is offline   Reply With Quote
Advert
Old 09-11-2023, 07:37 PM   #3
hepyrian
Junior Member
hepyrian began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2023
Device: K4
I want to add one more update here. I was able to successfully connect to it using Terminal on my Macbook. So, is there some kind of network driver or something missing from Raspberry Pi that makes it not connect properly?
hepyrian is offline   Reply With Quote
Old 09-12-2023, 01:26 PM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
More likely a network management daemon screwing with your manual setup (e.g., NetworkManager).

You wouldn't have a network interface at all if you were missing usb gadget support (and that's *extremely* unlikely on a distro kernel anyway).
NiLuJe is offline   Reply With Quote
Old 09-18-2023, 01:38 PM   #5
hepyrian
Junior Member
hepyrian began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2023
Device: K4
Looks like you were right! Here's how I fixed it for anyone googling this in the future:

instead of using
Quote:
sudo ifconfig usb0 192.168.15.201
to set up the IP, instead try
Quote:
sudo ip addr add 192.168.15.201/24 dev usb0
(or whatever the device name is)

Thanks!
hepyrian is offline   Reply With Quote
Advert
Reply

Tags
jailbreak, linux, ssh, usbnetwork


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
K4 Struggling with getting a USBNet connection thephatmaster Kindle Developer's Corner 3 01-23-2023 01:15 PM
Connection timed out when I try to access using external connetcion tykwytta Server 11 04-14-2020 07:42 PM
Connection timed out errors in kobofirmware geek1011 Kobo Reader 1 04-08-2018 01:39 PM
Timed Checkout mcmanisd Library Management 1 11-29-2011 06:27 PM
Timed out when DL books king33 Calibre 1 09-07-2009 07:59 AM


All times are GMT -4. The time now is 10:17 PM.


MobileRead.com is a privately owned, operated and funded community.