Can't connect to Ubuntu box

190 views
Skip to first unread message

Brett Shepard

unread,
Oct 24, 2012, 10:27:31 PM10/24/12
to connectb...@googlegroups.com
I can connect just fine from my WinXP machine using PuTTY, but Connect Bot gives me:

---------------------------------
Connecting to 192.168.1.53:22 via ssh

Connection Lost
Connecting to 192.168.1.53:22 via ssh
The operation timed out
The operation timed out
---------------------------------

The PC is wired, and the phone is connected via WiFi. I'm sitting at home on my home network, and I get a nearly instant connection from the PC.

Suggestions? What other info do you need to help trouble shoot?

TIA

Shai Ayal

unread,
Oct 24, 2012, 10:37:05 PM10/24/12
to connectb...@googlegroups.com
Install aLogcat and look at what connectbot has to say in the log




--
You received this message because you are subscribed to the Google Groups "ConnectBot Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/connectbot-users/-/TB5RlqeiyYkJ.
To post to this group, send email to connectb...@googlegroups.com.
To unsubscribe from this group, send email to connectbot-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/connectbot-users?hl=en.



--
SPT - persistent SSH tunnels for android.

Brett Shepard

unread,
Oct 24, 2012, 10:51:30 PM10/24/12
to connectb...@googlegroups.com
I think these are the relevant bits...

D/NotificationService(25699): ACTION_NOTIFICATION_ADD,id=1,pkg=org.connectbot
I/ConnectBot.TerminalBridge(30748): parentChanged() now width=60, height=40
I/ActivityManager(25699): Displayed activity org.connectbot/.ConsoleActivity: 737 ms (total 737 ms)
I/ConnectBot.TerminalBridge(30748): parentChanged() now width=60, height=23
E/ConnectBot.SSH(30748): Problem in SSH connection thread during authentication
E/ConnectBot.SSH(30748): java.io.IOException: There was a problem while connecting to 192.169.1.53:22
E/ConnectBot.SSH(30748):     at com.trilead.ssh2.Connection.connect(Connection.java:864)
E/ConnectBot.SSH(30748):     at com.trilead.ssh2.Connection.connect(Connection.java:644)
E/ConnectBot.SSH(30748):     at org.connectbot.transport.SSH.connect(SSH.java:427)
E/ConnectBot.SSH(30748):     at org.connectbot.service.TerminalBridge$3.run(TerminalBridge.java:275)
E/ConnectBot.SSH(30748):     at java.lang.Thread.run(Thread.java:1102)
E/ConnectBot.SSH(30748): Caused by: java.net.SocketException: The operation timed out
E/ConnectBot.SSH(30748):     at org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native Method)
E/ConnectBot.SSH(30748):     at org.apache.harmony.luni.platform.OSNetworkSystem.connect(OSNetworkSystem.java:115)
E/ConnectBot.SSH(30748):     at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:244)
E/ConnectBot.SSH(30748):     at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:533)
E/ConnectBot.SSH(30748):     at java.net.Socket.connect(Socket.java:1055)
E/ConnectBot.SSH(30748):     at com.trilead.ssh2.transport.TransportManager.establishConnection(TransportManager.java:342)
E/ConnectBot.SSH(30748):     at com.trilead.ssh2.transport.TransportManager.initialize(TransportManager.java:450)
E/ConnectBot.SSH(30748):     at com.trilead.ssh2.Connection.connect(Connection.java:804)
E/ConnectBot.SSH(30748):     ... 4 more
D/ConnectBot.ConsoleActivity(30748): Someone sending HANDLE_DISCONNECT to parentHandler
D/NotificationService(25699): cancelNotification, ACTION_NOTIFICATION_REMOVE,pkg=org.connectbot,id=1
D/ConnectBot.ConsoleActivity(30748): onPause called
E/ConnectBot.SSH(30748): Problem in SSH connection thread during authentication
E/ConnectBot.SSH(30748): java.io.IOException: There was a problem while connecting to 192.169.1.53:22
E/ConnectBot.SSH(30748):     at com.trilead.ssh2.Connection.connect(Connection.java:864)
E/ConnectBot.SSH(30748):     at com.trilead.ssh2.Connection.connect(Connection.java:644)
E/ConnectBot.SSH(30748):     at org.connectbot.transport.SSH.connect(SSH.java:427)
E/ConnectBot.SSH(30748):     at org.connectbot.service.TerminalBridge$3.run(TerminalBridge.java:275)
E/ConnectBot.SSH(30748):     at java.lang.Thread.run(Thread.java:1102)
E/ConnectBot.SSH(30748): Caused by: java.net.SocketException: The operation timed out
E/ConnectBot.SSH(30748):     at org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native Method)
E/ConnectBot.SSH(30748):     at org.apache.harmony.luni.platform.OSNetworkSystem.connect(OSNetworkSystem.java:115)
E/ConnectBot.SSH(30748):     at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:244)
E/ConnectBot.SSH(30748):     at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:533)
E/ConnectBot.SSH(30748):     at java.net.Socket.connect(Socket.java:1055)
E/ConnectBot.SSH(30748):     at com.trilead.ssh2.transport.TransportManager.establishConnection(TransportManager.java:342)
E/ConnectBot.SSH(30748):     at com.trilead.ssh2.transport.TransportManager.initialize(TransportManager.java:450)
E/ConnectBot.SSH(30748):     at com.trilead.ssh2.Connection.connect(Connection.java:804)
E/ConnectBot.SSH(30748):     ... 4 more
I/ConnectBot.TerminalManager(30748): Someone unbound from TerminalManager
D/ConnectBot.TerminalManager(30748): Stopping background service immediately
I/ConnectBot.TerminalManager(30748): Destroying background service
---------------------------------------------------------------------------------------------

Looks like there's an error from Java on a time out, but doesn't seem (to me) to indicate what's causing it. Do I need to change settings in aLogcat? Level is currently Verbose, and Format is Brief.

Thanks a bunch!

Shai Ayal

unread,
Oct 25, 2012, 6:36:05 AM10/25/12
to connectb...@googlegroups.com
OK. can you try to connect from the phone to 192.169.1.53 by some
other means? maybe it has a web server, or maybe just ping?

l00g33k

unread,
Oct 25, 2012, 10:45:59 AM10/25/12
to connectb...@googlegroups.com
Or use telnet protocol to connect to ssshd (port 22). Do same from desktop to see what to expect.

Shai Ayal <sha...@gmail.com> wrote:


Looks like there's an error from Java on a time out, but doesn't seem (to me) to indicate what's causing it. Do I need to change settings in aLogcat? Level is currently Verbose, and Format is Brief.

Thanks a bunch!



OK. can you try to connect from the phone to 192.169.1.53 by some
other means? maybe it has a web server, or maybe just ping?


--
SPT - persistent SSH tunnels for android.

--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Brett Shepard

unread,
Oct 25, 2012, 10:52:52 AM10/25/12
to connectb...@googlegroups.com
I sure can. I'm running XBMC on the Ubuntu box, and I use the XBMC remote control app on the phone to connect to it. Also, I just tried to ping, and was getting <2ms response times.

Brett Shepard

unread,
Oct 25, 2012, 10:58:55 AM10/25/12
to connectb...@googlegroups.com
I attempted to telnet to port 22. I got no response on the phone or desktop - it said "SSH-2.0-OpenSSH_5.8p1 Debian-7ubuntu1" and stared back at me.

l00g33k

unread,
Oct 25, 2012, 11:07:06 AM10/25/12
to connectb...@googlegroups.com
The response is as expected. It proves that you have gotten a text string from the sshd server! The SSH version string.
Message has been deleted

Brett Shepard

unread,
Oct 25, 2012, 11:56:54 AM10/25/12
to connectb...@googlegroups.com
Not sure what happened to my original response...

I take it, then, that this is a good sign. Is there anything further I should pursue on this path?

l00g33k

unread,
Oct 25, 2012, 12:10:14 PM10/25/12
to connectb...@googlegroups.com
You didn't quote what you are responding to but I take it to be mine.

I have never rebuild ConnectBot nor look at the source, but here's my
guess. The bottom most layer in ConnectBot that talks just slightly
above the TCP level is working fine in that it is able to communicate
and exchange data with the sshd server. If indeed as your logcat suggest
there is an exception in the Java code, it is likely in the higher level
dealing with the ssh protocol.

Without the coder taking a closer look, we really don't know.

But if you can/want to try difference version of the sshd server, say
lower than 5.8, even just briefly, may be some versions will work.
Alternatively you can try 5.8 on another Linux machine, say on a
different distro.

Bear in mind that I'm just suggesting what I can think of, not necessary
what you should do. It may be more productive to wait for a volunteer
coder to take a look.
> --
> You received this message because you are subscribed to the Google Groups "ConnectBot Users" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/connectbot-users/-/cIKAX4xLWpMJ.

Brett Shepard

unread,
Oct 25, 2012, 12:22:16 PM10/25/12
to connectb...@googlegroups.com
Sorry, l00g33k, I'm looking at the website where the conversation is neatly threaded, so I deleted the very long quote string. Yes, I was responding to you.

You've gone over my head with this, I've never delved much into the 7 different layers involved in communication, so I wouldn't have a clue where to start looking, I'm not enough of a Linux geek to want to mess around with trying another version of SSH - especially since this is on my HTPC, and any time it's been unavailable, there is a major ruckus at the house! 8-(

I appreciate your thoughts, hopefully someone else will have some suggestions, or be able to delve into the code to see what's up.

Brett Shepard

unread,
Oct 26, 2012, 3:55:46 PM10/26/12
to connectb...@googlegroups.com
Any other suggestions on what to look at? Would it be helpful to turn up the level of what's reported in aLogcat?

Thanks


On Thursday, October 25, 2012 6:36:07 AM UTC-4, shaiay wrote:
On Wed, Oct 24, 2012 at 10:51 PM, Brett Shepard <bdsh...@gmail.com> wrote:
>
 
<snip>
Reply all
Reply to author
Forward
0 new messages