Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

SSH Unknown Error

#3

When attempting to connect to a remote SSH session I get an "SSH: Unknown Error" message. Pics included

Reported by No1451 · March 16th, 2010 @ 04:15 PM

State: resolved
Milestone: none
Assigned to: vovasty vovasty

Activity

  1. vovasty
    vovasty
    • Assigned user set to vovasty
    1. Open Console.app (under /Applications/Utilities)
    2. Open Nativa
    3. Configure rtorrent connection and push save button
    4. Look into Console and copy/paste log messages to this ticked, which looks like to
      16.03.10 5:42:58 Nativa[10015]message

    NB
    I suppose you remove images with your private information (username and host)

    March 16th, 2010 @ 07:54 PM

  2. No1451
    No1451

    10-03-16 3:40:58 PM Nativa[27848] Session (null) is now closed.
    10-03-16 3:41:02 PM Nativa[27848] Used SSH Command : ssh -N -L 5006:127.0.0.1:5006 chuckles@hosta08.expertrepair.co.uk -p 22
    10-03-16 3:41:02 PM Nativa[27848] Session (null) is now launched.
    10-03-16 3:41:02 PM [0x0-0xb7cb7c].net.aramzamzam.Nativa[27848] child process exited abnormally
    10-03-16 3:41:02 PM [0x0-0xb7cb7c].net.aramzamzam.Nativa[27848] while executing
    10-03-16 3:41:02 PM [0x0-0xb7cb7c].net.aramzamzam.Nativa[27848] "exec ps | awk /$arguments/ | awk {!/(grep|expect)/ {print $1}} | xargs kill"
    10-03-16 3:41:02 PM [0x0-0xb7cb7c].net.aramzamzam.Nativa27848
    10-03-16 3:41:02 PM Nativa[27848] reconnecting ssh tunnel ...
    10-03-16 3:41:02 PM Nativa[27848] Used SSH Command : ssh -N -L 5006:127.0.0.1:5006 chuckles@hosta08.expertrepair.co.uk -p 22

    And then it repeats a bunch

    March 16th, 2010 @ 10:44 PM

  3. vovasty
    vovasty

    Can you execute command
    /Applications/Nativa.app/Contents/Resources/SSHCommand.sh "ssh -N -L 5006:127.0.0.1:5006 chuckles@hosta08.expertrepair.co.uk -p 22"

    in terminal and post execution results here?

    March 16th, 2010 @ 10:54 PM

  4. No1451
    No1451

    I get this:

    spawn ssh -N -L 5000:127.0.0.1:5000 chuckles@hosta08.expertrepair.co.uk -p 22
    chuckles@hosta08.expertrepair.co.uk's password:
    Permission denied, please try again.
    chuckles@hosta08.expertrepair.co.uk's password: WRONG_PASSWORD

    It just skips past the entry portion, in Console:

    10-03-16 9:52:11 PM Nativa[27848] Session (null) is now launched.
    10-03-16 9:52:14 PM [0x0-0xb7cb7c].net.aramzamzam.Nativa error writing "stdout": broken pipe
    10-03-16 9:52:14 PM [0x0-0xb7cb7c].net.aramzamzam.Nativa while executing
    10-03-16 9:52:14 PM [0x0-0xb7cb7c].net.aramzamzam.Nativa "puts "WRONG_PASSWORD""
    10-03-16 9:52:14 PM [0x0-0xb7cb7c].net.aramzamzam.Nativa invoked from within
    10-03-16 9:52:14 PM [0x0-0xb7cb7c].net.aramzamzam.Nativa "expect "?assword:" {puts "WRONG_PASSWORD"; exit;}"
    10-03-16 9:52:14 PM [0x0-0xb7cb7c].net.aramzamzam.Nativa invoked from within
    10-03-16 9:52:14 PM [0x0-0xb7cb7c].net.aramzamzam.Nativa "expect {
    10-03-16 9:52:14 PM [0x0-0xb7cb7c].net.aramzamzam.Nativa "?sh: Error" {puts "CONNECTION_ERROR"; exit};
    10-03-16 9:52:14 PM [0x0-0xb7cb7c].net.aramzamzam.Nativa "
    yes/no" {send "yes\r"; exp_continue};
    10-03-16 9:52:14 PM [0x0-0xb7cb7c].net.aramzamzam.Nativa "
    Connection refused*" {puts "CONNECTION_REFUSE..."
    10-03-16 9:52:14 PM [0x0-0xb7cb7c].net.aramzamzam.Nativa (file "/Applications/Nativa.app/Contents/Resources/SSHCommand.sh" line 34)

    March 17th, 2010 @ 05:09 AM

  5. vovasty
    vovasty

    Looks like when you first time tried to configure Native, thereis another ssh tunnel already running on other account on same computer.
    Nativa tried to kill it, but was unable to do it.

    I suggest you to use another local port (5007, for example), or use same tunnel for Nativa. For usage same tunnel your configuration will be:
    SCGI host: 127.0.0.1
    port: 5006
    SSH unchecked

    March 17th, 2010 @ 10:38 PM

  6. No1451
    No1451

    When I do that it just says connection refused, what sorts of things would create an ssh tunnel that would affect Nativa? Can I just kill them off and go from there? I can still SSH into the box just fine using Terminal, can I just SSH in on terminal and then get Nativa to use that tunnel? Thanks

    March 17th, 2010 @ 11:03 PM

  7. vovasty
    vovasty
    • State changed from new to open

    for some reason, when SSH exits, port retains "busy" for some seconds. Of course, you can establish ssh tunnel manually with command like ssh -N -L 5000:127.0.0.1:5000 chuckles@hosta08.expertrepair.co.uk -p 22 and use nativa with this tunnel (just uncheck use SSH in settings)

    Can you try attached version of Nativa with possible fix of this problem?

    March 17th, 2010 @ 11:37 PM

  8. No1451
    No1451

    Ok, so with the newest version it does connect, I see this at launch in console. However it sits forever stuck at "Connecting...". I really hope this gets working, I am loving the look of what this app can do:)

    10-03-17 10:31:24 PM Nativa[704] Used SSH Command : ssh -N -L 5000:127.0.0.1:5000 chuckles@hosta08.expertrepair.co.uk -p 22
    10-03-17 10:31:24 PM Nativa[704] Session (null) is now launched.
    10-03-17 10:31:24 PM Nativa[704] Used SSH Command : ssh -N -L 5000:127.0.0.1:5000 chuckles@hosta08.expertrepair.co.uk -p 22
    10-03-17 10:31:24 PM Nativa[704] Session (null) is now launched.
    10-03-17 10:31:24 PM Nativa[704] Used SSH Command : ssh -N -L 5000:127.0.0.1:5000 chuckles@hosta08.expertrepair.co.uk -p 22
    10-03-17 10:31:24 PM Nativa[704] Session (null) is now launched.
    10-03-17 10:31:24 PM Nativa[704] Used SSH Command : ssh -N -L 5000:127.0.0.1:5000 chuckles@hosta08.expertrepair.co.uk -p 22
    10-03-17 10:31:24 PM Nativa[704] Session (null) is now launched.
    10-03-17 10:31:24 PM Nativa[704] Can't open input server /Library/InputManagers/MultiClutchInputManager.bundle
    10-03-17 10:31:24 PM Nativa[704] ssh out:spawn ssh -N -L 5000:127.0.0.1:5000 chuckles@hosta08.expertrepair.co.uk -p 22
    10-03-17 10:31:25 PM Nativa[704] ssh out:chuckles@hosta08.expertrepair.co.uk's password:
    10-03-17 10:31:25 PM Nativa[704] ssh out:
    10-03-17 10:31:29 PM Nativa[704] ssh out:CONNECTED

    March 18th, 2010 @ 05:33 AM

  9. vovasty
  10. No1451
    No1451

    Still no love, am I doing something seriously wrong here? The scgi port used on my remote box is 5006.

    It accepts it but now when I start it says "connecting" then does nothing, my console log:

    10-03-18 5:47:09 PM Nativa[2482] Session (null) is now closed.
    10-03-18 5:47:09 PM Nativa[2482] Used SSH Command : ssh -N -L 5006::5000 chuckles@hosta08.expertrepair.co.uk -p 22
    10-03-18 5:47:10 PM Nativa[2482] Session (null) is now launched.
    10-03-18 5:47:15 PM [0x0-0x129129].net.aramzamzam.Nativa error writing "stdout": broken pipe
    10-03-18 5:47:15 PM [0x0-0x129129].net.aramzamzam.Nativa while executing
    10-03-18 5:47:15 PM [0x0-0x129129].net.aramzamzam.Nativa "puts "CONNECTED""
    10-03-18 5:47:15 PM [0x0-0x129129].net.aramzamzam.Nativa (file "/Applications/Nativa-1.app/Contents/Resources/SSHCommand.sh" line 47)
    10-03-18 5:47:15 PM Nativa[2525] Used SSH Command : ssh -N -L 5006::5000 chuckles@hosta08.expertrepair.co.uk -p 22
    10-03-18 5:47:15 PM Nativa[2525] Session (null) is now launched.
    10-03-18 5:47:15 PM Nativa[2525] Can't open input server /Library/InputManagers/MultiClutchInputManager.bundle
    10-03-18 5:47:15 PM Nativa[2525] ssh out:spawn ssh -N -L 5006::5000 chuckles@hosta08.expertrepair.co.uk -p 22
    10-03-18 5:47:16 PM Nativa[2525] ssh out:chuckles@hosta08.expertrepair.co.uk's password:
    10-03-18 5:47:16 PM Nativa[2525] ssh out:
    10-03-18 5:47:20 PM Nativa[2525] ssh out:CONNECTED

    March 19th, 2010 @ 12:48 AM

  11. vovasty
    vovasty

    looks like you forgot SCGI host (127.0.0.1)

    March 19th, 2010 @ 12:50 AM

  12. No1451
    No1451

    When I do put it in it works....sort of. It's pulling up a list of torrents that in no way reflects what's going on on my box

    March 19th, 2010 @ 12:57 AM

  13. No1451
    No1451

    Scratch that! It works, I played with a few more things and got it sorted, ticket closed:). Thanks for your prompt replies vovasty and thanks for this excellent app, so much nicer than a webUI.

    Is there any chance a setting like Transmission's "Automatically size window to fit all transfers"? That would make this absolutely 100% perfect in my eyes.

    March 19th, 2010 @ 01:14 AM

  14. vovasty
    vovasty
    • State changed from open to resolved

    You always can create ticket with your suggestions

    March 19th, 2010 @ 01:20 AM

  15. No1451
    No1451

    I thought it was resolved, but it wasn't. The only way to get it to connect is to piggyback on an SSH tunnel by connecting via terminal :(

    March 19th, 2010 @ 01:23 AM

  16. vovasty
    vovasty
    • State changed from resolved to open

    Endless "Connecting..." message?

    March 19th, 2010 @ 01:31 AM

  17. No1451
    No1451

    SSH: unknown error

    March 19th, 2010 @ 01:32 AM

  18. vovasty
  19. No1451
    No1451

    10-03-18 6:34:46 PM Nativa[3207] Session (null) is now launched.
    10-03-18 6:34:46 PM [0x0-0x148148].net.aramzamzam.Nativa[3207] child process exited abnormally
    10-03-18 6:34:46 PM [0x0-0x148148].net.aramzamzam.Nativa[3207] while executing
    10-03-18 6:34:46 PM [0x0-0x148148].net.aramzamzam.Nativa[3207] "exec ps -opid,args | awk /$arguments/ | awk {!/(grep|expect)/ {print $1}} | xargs kill"
    10-03-18 6:34:46 PM [0x0-0x148148].net.aramzamzam.Nativa3207
    10-03-18 6:34:46 PM Nativa[3207] reconnecting ssh tunnel ...
    10-03-18 6:34:46 PM Nativa[3207] Used SSH Command : ssh -N -L 5006:127.0.0.1:5006 chuckles@hosta08.expertrepair.co.uk -p 22
    10-03-18 6:34:46 PM Nativa[3207] Session (null) is now launched.
    10-03-18 6:34:46 PM [0x0-0x148148].net.aramzamzam.Nativa[3207] child process exited abnormally
    10-03-18 6:34:46 PM [0x0-0x148148].net.aramzamzam.Nativa[3207] while executing
    10-03-18 6:34:46 PM [0x0-0x148148].net.aramzamzam.Nativa[3207] "exec ps -opid,args | awk /$arguments/ | awk {!/(grep|expect)/ {print $1}} | xargs kill"
    10-03-18 6:34:46 PM [0x0-0x148148].net.aramzamzam.Nativa3207
    10-03-18 6:34:46 PM Nativa[3207] reconnecting ssh tunnel ...
    10-03-18 6:34:46 PM Nativa[3207] Used SSH Command : ssh -N -L 5006:127.0.0.1:5006 chuckles@hosta08.expertrepair.co.uk -p 22
    10-03-18 6:34:46 PM Nativa[3207] Session (null) is now launched.
    10-03-18 6:34:46 PM [0x0-0x148148].net.aramzamzam.Nativa[3207] child process exited abnormally
    10-03-18 6:34:46 PM [0x0-0x148148].net.aramzamzam.Nativa[3207] while executing
    10-03-18 6:34:46 PM [0x0-0x148148].net.aramzamzam.Nativa[3207] "exec ps -opid,args | awk /$arguments/ | awk {!/(grep|expect)/ {print $1}} | xargs kill"
    10-03-18 6:34:46 PM [0x0-0x148148].net.aramzamzam.Nativa3207
    10-03-18 6:34:46 PM Nativa[3207] ssh tunnel error: SSH: unknown error

    It repeats a bunch, all the same dialogue again and again until it hits the unknown error

    March 19th, 2010 @ 01:36 AM

  20. vovasty
    vovasty

    Try this one. If all will be okay, logout and try to connect again

    March 19th, 2010 @ 01:43 AM

  21. No1451
    No1451

    Working, I reset my machine to ensure there were no other pipes open, it looks like your dev magic worked. Thanks!

    March 19th, 2010 @ 01:52 AM

  22. vovasty
    vovasty
    • State changed from open to resolved

    Thank you for your patience ;)

    March 19th, 2010 @ 01:54 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.