webOS Nation Forums >  Homebrew >  webOS patches > OpenSSH stopped working on TouchPad after upgrde to 3.0.2
OpenSSH stopped working on TouchPad after upgrde to 3.0.2

  Reply
 
LinkBack Thread Tools Display Modes
Old 08/27/2011, 08:23 AM   #1 (permalink)
Member
 
Join Date: Aug 2009
Location: Austin, TX
Posts: 181
Likes Received: 20
Thanks: 4
Thanked 13 Times in 11 Posts
Default OpenSSH stopped working on TouchPad after upgrde to 3.0.2

I noticed that after I upgraded to 3.0.2 on my TouchPad that SSH access went away. I've followed these steps thus far:

1.) Went into Preware and re-installed OpenSSH
- No effect
2.) Installed 'Emergency Service Enabler' via Preware
- SSH now listening on pot 22 as expected, but connecting results in:
"ssh_exchange_identification: Connection closed by remote host"
3.) I check to see if my keys are still there. Strangely enough they are not. So I re-run the steps outlined at Application:OpenSSH - WebOS Internals
- Still getting "ssh_exchange_identification: Connection closed by remote host"
4.) So I try taking the public key from my Linux box (id_rsa.pub), and adding it to the 'authorized_keys' of the TouchPad
- Still getting "ssh_exchange_identification: Connection closed by remote host"
5.) Finally I check /var/log/messages, and I notice every time I try to connect, openssh crashes with this message:

Code:
2011-08-27T01:19:11.524621Z [252439] webos-device kern.info kernel: [252439.765367] minicore_launch: CRASH! sshd(2180) received 11. Waiting up to 60s for minicore to attach.
Anyone have any clue what might be the problem here?

-Jeremy
irwinr12 is offline   Reply With Quote
Old 08/27/2011, 09:25 AM   #2 (permalink)
Member
 
Join Date: Aug 2009
Location: Austin, TX
Posts: 181
Likes Received: 20
Thanks: 4
Thanked 13 Times in 11 Posts
Default

Something I forgot to mention: When I run /opt/bin/ssh-keygen

I get some strange output:

Code:
root@HPTouchPad:/# /opt/bin/ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/root/.ssh/id_rsa): 
/home/root/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in �.
Your public key has been saved in �.pub.
The key fingerprint is:
f0:f0:2c:89:cc:b9:6e:5a:af:5a:74:ed:fc:a5:ad:f3 root@�
And it ends up saving the public key to a file named something like ?.pub. Notice the corrupted output?

I've also tried completely uninstalling all optware based stuff in preware and re-installing all of it.

-Jeremy
irwinr12 is offline   Reply With Quote
Old 10/02/2011, 09:10 AM   #3 (permalink)
Member
 
Join Date: Aug 2009
Location: Austin, TX
Posts: 181
Likes Received: 20
Thanks: 4
Thanked 13 Times in 11 Posts
Default

I'm attaching some strace output hoping someone can help me with this. The strace was produced by the command:

Code:
ssh jeremy@the-edge-consulting.com
I've tried uninstalling all OpenSUSE apps from preware, completely deleting all openSUSE config files/folders under /opt/etc and /var/home/root/.ssh... I still can not figure out what's wrong with my SSH. I can not SSH in or out of my TouchPad. If I try to SSH out to any server I get a segmentation fault.

If need be I can try installing GDB if someone can give me (or point me to) some instructions on how to install it.

-Jeremy
Attached Files
File Type: txt ssh.strace.txt (67.8 KB, 5 views) Email Attachment
irwinr12 is offline   Reply With Quote
Old 10/02/2011, 04:48 PM   #4 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Seen this before, but never was able to diagnose it. It only happens on some devices for some reason.

Uninstall all the openssh stuff, reboot, install them. Generate your key on a desktop computer.

-- Rod
rwhitby is offline   Reply With Quote
Old 10/02/2011, 06:46 PM   #5 (permalink)
Member
 
Join Date: Aug 2009
Location: Austin, TX
Posts: 181
Likes Received: 20
Thanks: 4
Thanked 13 Times in 11 Posts
Default

Quote:
Seen this before, but never was able to diagnose it. It only happens on some devices for some reason.

Uninstall all the openssh stuff, reboot, install them. Generate your key on a desktop computer.

-- Rod
Thanks Rod.

Uninstalling the OpenSSH stuff, rebooting, and re-installing did not help. However uninstalling all of the Optware/Linux stuff, rebooting, and re-installing did help. It's all working now.

Btw, my first order of business once it was working was loading up Xecutah/Xterm, doing an ssh -X into my Linux box and running Firefox on my TouchPad. It was awesome! Thanks again for all your hard work!

Is there a way to scroll up/down in Xterm? Or right click?


-- Sent from my HP TouchPad using Communities
irwinr12 is offline   Reply With Quote
Old 02/05/2012, 07:13 PM   #6 (permalink)
Member
 
Join Date: May 2010
Posts: 4
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I am having the same issue with openssh. Which other apps did you need to remove and re-install?

thanks.
jim
jmdearras is offline   Reply With Quote
Old 02/05/2012, 09:01 PM   #7 (permalink)
Member
 
Furuboru's Avatar
 
Join Date: Feb 2008
Posts: 340
Likes Received: 8
Thanks: 132
Thanked 50 Times in 37 Posts
Default

Quote:
Originally Posted by rwhitby View Post
Generate your key on a desktop computer.

-- Rod
Sorry SSH noob question -- how does one generate a key on the PC/desktop? I'm thinking via webOSQuickInstall's Linux Commandline function?

Or wait, can I just use another Pre's or Touchpad's authorized_keys file and paired .ppk file? Holy smokes, I think that's possible. *slaponforehead* Will try later
Furuboru is offline   Reply With Quote
Old 02/06/2012, 09:16 PM   #8 (permalink)
Member
 
Join Date: Jan 2012
Posts: 27
Likes Received: 1
Thanks: 5
Thanked 1 Time in 1 Post
Default

is ssh working on 3.0.5?
I get segmentation fault trying to connect to a remote server.

I've already tried removing xterm, xserver, xecutah, openssh, and other optware, reboot, reinstall, but no success.

Anyone have a working setup?
getsun is offline   Reply With Quote
Old 02/09/2012, 02:19 PM   #9 (permalink)
jkb
Member
 
Join Date: Mar 2010
Posts: 1
Likes Received: 0
Thanks: 0
Thanked 1 Time in 1 Post
Default OpenSSH client segfault on 3.0.5 (fixed) I hope

I saw a note in the opensh package about no longer requiring zlib and openssl. I ran into the segfault issue when ssh'ing out from the touchpad. I went ahead and installed the zlib package as well as the openssl package and now ssh is working swimmingly.
jkb is offline   Reply With Quote
Thanked By: getsun
Old 02/10/2012, 11:56 AM   #10 (permalink)
Member
 
Join Date: Jan 2012
Posts: 27
Likes Received: 1
Thanks: 5
Thanked 1 Time in 1 Post
Default

Installed zlip & openssl and it work. It fixed the segmentation fault issue. Thanks jkb!
getsun is offline   Reply With Quote
Old 02/10/2012, 04:01 PM   #11 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Do the people having problems happen to have the Alpha Testing feed for optware enabled?

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals
rwhitby is offline   Reply With Quote
Old 02/10/2012, 04:39 PM   #12 (permalink)
Member
 
Join Date: Jul 2010
Posts: 282
Likes Received: 84
Thanks: 26
Thanked 187 Times in 40 Posts
Default

I need to know if people are only getting segfaults on 3.0.5 or if it happens on other versions too?

webOS 2.1.2, 2.2.4 etc. need to be tested.
__________________
Follow me on Twitter: http://twitter.com/warthogkernel

Experimental warthog kernels for webOS devices. Patches such as Muffle System Logging, Max Blocker etc.

Donations go towards further experimentation.
codecrumb is offline   Reply With Quote
Old 02/10/2012, 07:24 PM   #13 (permalink)
Member
 
Join Date: Mar 2010
Posts: 41
Likes Received: 1
Thanks: 8
Thanked 27 Times in 12 Posts
Default

I had the same problem with franken pre2 on 2.2.4 until I installed zlip and openssl as reccomended. Still getting Connection refused when trying to connect to the franken pre2 from computer or touchpad. Alpha Testing feed for optware is disabled.
blake0 is offline   Reply With Quote
Old 02/10/2012, 07:26 PM   #14 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Quote:
Originally Posted by blake0 View Post
I had the same problem with franken pre2 on 2.2.4 until I installed zlip and openssl as reccomended. Still getting Connection refused when trying to connect to the franken pre2 from computer or touchpad. Alpha Testing feed for optware is disabled.
Hmm. Somehow the alpha test version of openssh got into the public feed. codecrumb will need to revert that.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals
rwhitby is offline   Reply With Quote
Old 02/10/2012, 07:49 PM   #15 (permalink)
Member
 
Join Date: Mar 2010
Posts: 41
Likes Received: 1
Thanks: 8
Thanked 27 Times in 12 Posts
Default

Quote:
Originally Posted by rwhitby View Post
Hmm. Somehow the alpha test version of openssh got into the public feed. codecrumb will need to revert that.

-- Rod
Can confirm that reverting to version 5.9.1-2 of openssh resolve the connection refused problem.
blake0 is offline   Reply With Quote
Old 02/10/2012, 08:08 PM   #16 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

openssh_5.9.1-4 now in the feeds.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals
rwhitby is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0