#23 ✓resolved
jocker

Can not connect to remote rTorrent via ssh.

Reported by jocker | May 30th, 2010 @ 11:32 AM

My config (fake IP/user) is attached.

So I have "scgi_port = localhost:5000" (without quotes) in my rTorrent config file then restarted rTorrent, then tried to connect via Nativa.

My server IP is (represented by): 60.70.80.90
My SCGI port on rTorrent is set to: 5000
My SSH Server port on the remote server is set to: 22 (default)

And my user/pass are correct

Then when I click "save" I get:
"Not connected"

Any ideas?

PS,
My server is running Debian Lenny with ssh version:
OpenSSH_5.5p1 Debian-3, OpenSSL 0.9.8n 24 Mar 2010

Comments and changes to this ticket

  • vovasty

    vovasty May 30th, 2010 @ 08:08 PM

    during connection attempt look into console (Console.app) - it will show you connection progress and possible errors. You may copy/paste output here

  • jocker

    jocker May 31st, 2010 @ 02:31 AM

    Thanks for the quick reply, this is what I'm getting: (again my real server IP replaced with '60.70.80.90')

    31/05/10 10:28:39 AM Nativa[9168] Used SSH Command : ssh -N -L 5000:60.70.80.90:5000 root@60.70.80.90 -p 22
    31/05/10 10:28:39 AM Nativa[9168] Session (null) is now launched.
    31/05/10 10:28:40 AM Nativa[9168] ssh out:spawn ssh -N -L 5000:60.70.80.90:5000 root@60.70.80.90 -p 22
    31/05/10 10:28:55 AM Nativa[9168] ssh out:CONNECTION_TIMEOUT
    31/05/10 10:28:55 AM Nativa[9168] ssh tunnel error: SSH: Connection timeout.
    31/05/10 10:28:55 AM Nativa[9168] unable to connect
    31/05/10 10:28:55 AM Nativa[9168] update download list error: Not connected
    31/05/10 10:28:56 AM Nativa[9168] Session (null) is now closed.

  • vovasty

    vovasty May 31st, 2010 @ 03:16 AM

    try to spawn this command from console:

    this will open tunnel with your server
    ssh -N -L 5000:60.70.80.90:5000 root@60.70.80.90 -p 22

    or

    this will open shell to your server
    ssh 60.70.80.90

    just for testing your connection with server

    but, as you can see, your server does not respond at all.

  • jocker

    jocker May 31st, 2010 @ 03:44 AM

    I ran that command:

    $ ssh -N -L 5000:60.70.80.90:5000 root@60.70.80.90 -p 22 channel 2: open failed: connect failed: Connection refused
    channel 2: open failed: connect failed: Connection refused
    channel 2: open failed: connect failed: Connection refused
    channel 2: open failed: connect failed: Connection refused

    Then tried to connect using Nativa, as you can see above I get refused...

    The Console displays:
    31/05/10 11:33:22 AM Nativa[492] update download list error: Invalid response
    31/05/10 11:33:22 AM Nativa[492] Encountered an XML parsing error: Error Domain=NSXMLParserErrorDomain Code=4 UserInfo=0x101a12f80 "zero length data"
    31/05/10 11:33:22 AM Nativa[492] update download list error: Invalid response

    I can't connect to my server with
    ssh 60.70.80.90
    as my server's username is different, so I can connect with:
    ssh -l root 60.70.80.90

    It will auto connect without a password prompt as I have set this up: http://wiki.dreamhost.com/SSH#Passwordless_Login
    Would that have anything todo with the errors...?

  • vovasty

    vovasty May 31st, 2010 @ 04:02 AM

    Is your server supports ssh protocol version 2?
    If no, you can configure your rtorrent to bind to external ip , so in
    your rtorrent.rc will be line
    scgi_port=60.79.80.90:5000

    For security reasons this configuration ok only for local network.

  • jocker

    jocker May 31st, 2010 @ 04:23 AM

    I don't really want to go for the less secure method if possible.
    I have full access to the server so I can change config files upgrade programs if needed.

    How do I check if my server supports ssh protocol version 2?
    I have
    ~/.ssh/authorized_keys not
    ~/.ssh/authorized_keys2 So does that mean I don't have v2?

    I ran the command in verbose mode and use −2 to try and force the use of protocal 2

    $ ssh -v -2 -N -L 5000:60.70.80.90:5000 root@60.70.80.90 -p 22 OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
    debug1: Reading configuration data /etc/ssh_config
    debug1: Connecting to 60.70.80.90 [60.70.80.90] port 22.
    debug1: Connection established.
    debug1: identity file /Users/macUser/.ssh/id_rsa type 1
    debug1: identity file /Users/macUser/.ssh/id_dsa type -1
    debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-3
    debug1: match: OpenSSH_5.5p1 Debian-3 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_5.2
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: kex: server->client aes128-ctr hmac-md5 none
    debug1: kex: client->server aes128-ctr hmac-md5 none
    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
    debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
    debug1: Host '60.70.80.90' is known and matches the RSA host key.
    debug1: Found key in /Users/macUser/.ssh/known_hosts:2
    debug1: ssh_rsa_verify: signature correct
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug1: SSH2_MSG_NEWKEYS received
    debug1: SSH2_MSG_SERVICE_REQUEST sent
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    debug1: Authentications that can continue: publickey,password
    debug1: Next authentication method: publickey
    debug1: Offering public key: /Users/macUser/.ssh/id_rsa
    debug1: Server accepts key: pkalg ssh-rsa blen 277
    debug1: read PEM private key done: type RSA
    debug1: Authentication succeeded (publickey).
    debug1: Local connections to LOCALHOST:5000 forwarded to remote address 60.70.80.90:5000
    debug1: Local forwarding listening on ::1 port 5000.
    debug1: channel 0: new [port listener]
    debug1: Local forwarding listening on 127.0.0.1 port 5000.
    debug1: channel 1: new [port listener]
    debug1: Requesting no-more-sessions@openssh.com
    debug1: Entering interactive session.

    The following is what happens when I click save in Nativa:

    debug1: Connection to port 5000 forwarding to 60.70.80.90 port 5000 requested.
    debug1: channel 2: new [direct-tcpip]
    channel 2: open failed: connect failed: Connection refused
    debug1: channel 2: free: direct-tcpip: listening port 5000 for 60.70.80.90 port 5000, connect from 127.0.0.1 port 50621, nchannels 3

  • jocker

    jocker May 31st, 2010 @ 04:32 AM

    I tried changing my rTorrent config to:
    scgi_port=60.79.80.90:5000

    Then restarted rTorrent

    $ netstat -np -l | grep 5000 tcp 0 0 60.70.80.90:5000 0.0.0.0:* LISTEN 20950/rtorrent

    Then I tried to connect (see screenshot)

    31/05/10 12:24:24 PM Nativa[492] update download list error: Network timeout
    31/05/10 12:28:54 PM Nativa[492] update download list error: Network timeout

  • vovasty

    vovasty May 31st, 2010 @ 04:40 AM

    aww, now I see. Ok, do next:
    .rtorrent.rc scg_port=127.0.0.1:5000

    Nativa
    scgi host 127.0.0.1
    scgi port 5000
    connect via ssh yes
    ssh host 60.79.80.90
    ssh port 22
    local port 5000
    ssh username your username
    ssh password your password

  • jocker

    jocker May 31st, 2010 @ 04:53 AM

    Nop, still doesn't connect.
    I assume you made a typo "scg_port" => "scgi_port"
    And the rest is as you typed it. (of course changing the 60.79.80.90 to my real server IP)

    Console error log:
    31/05/10 12:48:03 PM GrowlHelperApp[362] Auto-discovered registration ticket in Nativa (located at /Applications/Nativa.app)
    31/05/10 12:48:03 PM SIMBL Agent[341] warning: failed to get scripting definition from /Applications/Nativa.app; it may not be scriptable.
    31/05/10 12:48:35 PM /Applications/Nativa.app/Contents/MacOS/Nativa[1200] CGSKeyTranslateInitialize: KLGetCurrentKeyboardLayout or KLGetKeyboardLayoutProperty is not available, fall back to USA keymap
    31/05/10 12:49:04 PM Nativa[1200] Used SSH Command : ssh -N -L 5000:127.0.0.1:5000 root@60.79.80.90 -p 22
    31/05/10 12:49:04 PM Nativa[1200] Session (null) is now launched.
    31/05/10 12:49:05 PM Nativa[1200] ssh out:spawn ssh -N -L 5000:127.0.0.1:5000 root@60.79.80.90 -p 22
    31/05/10 12:49:20 PM Nativa[1200] ssh out:CONNECTION_TIMEOUT
    31/05/10 12:49:20 PM Nativa[1200] ssh tunnel error: SSH: Connection timeout.
    31/05/10 12:49:20 PM Nativa[1200] unable to connect
    31/05/10 12:49:20 PM Nativa[1200] update download list error: Not connected

  • vovasty

    vovasty May 31st, 2010 @ 04:57 AM

    try to establish ssh tunnel manually and post here successful command
    in Nativa just disable ssh and set scgi host 127.0.0.1 and desired port

  • jocker

    jocker May 31st, 2010 @ 05:35 AM

    How would I create an ssh tunnel?
    I mean I know one way, but im not sure if that works proper.

    e.g. I tried
    ssh -D 52121 root@60.79.80.907
    Then changed my SOCKS setting to 127.0.0.1 and port 52121
    This then allows me to do stuff on the internet via my server... But doing then trying to connect I done "Nativa just disable ssh and set scgi host 127.0.0.1 and desired port" (port 5000)

    31/05/10 1:32:52 PM Nativa[1200] update download list error: The operation couldn’t be completed. Connection refused

  • vovasty

    vovasty May 31st, 2010 @ 06:32 AM

    your ssh tunnel command should looks something like this
    ssh -v -2 -N -L 5000:127.0.0.1:5000 root@60.70.80.90 -p 22

    this command should be executed without errors in terminal and stay running
    your rtorrent should run on server and listen 127.0.0.1:5000 (for this command)

    the problem is - for some reason ssh command from nativa timed out. Another problem - rtorrent timed out too (looks like)

    future reading
    http://www.revsys.com/writings/quicktips/ssh-tunnel.html
    http://www.ssh.com/support/documentation/online/ssh/winhelp/32/Tunn...

  • jocker

    jocker May 31st, 2010 @ 10:19 AM

    Ok, done that, no errors, then I tried to connect using Nativa (with ssh un-checked)
    debug1: Connection to port 5000 forwarding to 127.0.0.1 port 5000 requested.
    debug1: channel 2: new [direct-tcpip]
    debug1: channel 2: free: direct-tcpip: listening port 5000 for 127.0.0.1 port 5000, connect from 127.0.0.1 port 57180, nchannels 3

    Ill setup a virtual Debain server in a few days and see if I can get it to work with that.

    Thanks for your help so far though

  • vovasty

    vovasty May 31st, 2010 @ 12:51 PM

    is nativa working?

  • jocker

    jocker May 31st, 2010 @ 01:38 PM

    No Nativa wasn't, when I tried to connect it gave those 3 lines of code in the preview comment.

    Im just installing rTorrent on my Mac now to see if I can get it to work locally :)

  • jocker

    jocker May 31st, 2010 @ 01:47 PM

    Yep works locally, so at least your program works :)

    Still, very VERY strange as to why it wont work on my server.

    If your up for it I might create a new user on my server for you to give it a try?

  • vovasty

    vovasty May 31st, 2010 @ 08:25 PM

    can you provide me with your ssh tunnel command?

  • vovasty

    vovasty June 1st, 2010 @ 01:37 AM

    try attached version (set "Force ssh v2" in rtorrent settings). I hope, this helps

  • jocker

    jocker June 1st, 2010 @ 02:45 PM

    I tried the new build, now it times out:

    1/06/10 10:33:13 PM Nativa[11251] Used SSH Command : ssh -2 -N -L 5000:127.0.0.1:5000 root@60.70.80.90 -p 22
    1/06/10 10:33:13 PM Nativa[11251] Session (null) is now launched.
    1/06/10 10:33:13 PM Nativa[11251] ssh out:spawn ssh -2 -N -L 5000:127.0.0.1:5000 root@60.70.80.90 -p 22
    1/06/10 10:33:28 PM Nativa[11251] ssh out:CONNECTION_TIMEOUT
    1/06/10 10:33:28 PM Nativa[11251] ssh tunnel error: SSH: Connection timeout.
    1/06/10 10:33:28 PM Nativa[11251] unable to connect
    1/06/10 10:33:28 PM Nativa[11251] error: SSH: Connection timeout.
    1/06/10 10:34:21 PM Nativa[11251] Session (null) is now closed.

    When doing this "ssh -2 -N -L 5000:127.0.0.1:5000 root@60.70.80.90 -p 22" directly via CLI it seems to establish the tunnel.

    Ill do a server reboot see if it helps.

  • vovasty

    vovasty June 1st, 2010 @ 10:11 PM

    okay, try this one :)

  • vovasty
  • jocker

    jocker June 2nd, 2010 @ 01:52 AM

    ooh now that provides lots more info, hopefully some helpful info :)

    2/06/10 9:40:17 AM Nativa[16486] Used SSH Command : ssh -2 -N -L 5000:127.0.0.1:5000 root@60.70.80.90 -p 22
    2/06/10 9:40:17 AM Nativa[16486] Session (null) is now launched.
    2/06/10 9:40:17 AM Nativa[16486] ssh out:spawn ssh -2 -N -L 5000:127.0.0.1:5000 root@60.70.80.90 -p 22 -v
    2/06/10 9:40:17 AM Nativa[16486] ssh out:OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
    2/06/10 9:40:17 AM Nativa[16486] ssh out:debug1: Reading configuration data /etc/ssh_config
    2/06/10 9:40:17 AM Nativa[16486] ssh out:debug1: Connecting to 60.70.80.90 [60.70.80.90] port 22.
    2/06/10 9:40:18 AM Nativa[16486] ssh out:debug1: Connection established.
    2/06/10 9:40:18 AM Nativa[16486] ssh out:debug1: identity file /Users/macUser/.ssh/id_rsa type 1
    debug1: identity file /Users/macUser/.ssh/id_dsa type -1
    2/06/10 9:40:18 AM Nativa[16486] ssh out:debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-3
    debug1: match: OpenSSH_5.5p1 Debian-3 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_5.2
    2/06/10 9:40:18 AM Nativa[16486] ssh out:debug1: SSH2_MSG_KEXINIT sent
    2/06/10 9:40:19 AM Nativa[16486] ssh out:debug1: SSH2_MSG_KEXINIT received
    debug1: kex: server->client aes128-ctr hmac-md5 none
    debug1: kex: client->server aes128-ctr hmac-md5 none
    2/06/10 9:40:19 AM Nativa[16486] ssh out:debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
    2/06/10 9:40:19 AM Nativa[16486] ssh out:debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
    2/06/10 9:40:20 AM Nativa[16486] ssh out:debug1: Host '60.70.80.90' is known and matches the RSA host key.
    debug1: Found key in /Users/macUser/.ssh/known_hosts:2
    2/06/10 9:40:20 AM Nativa[16486] ssh out:debug1: ssh_rsa_verify: signature correct
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug1: SSH2_MSG_NEWKEYS received
    debug1: SSH2_MSG_SERVICE_REQUEST sent
    2/06/10 9:40:21 AM Nativa[16486] ssh out:debug1: SSH2_MSG_SERVICE_ACCEPT received
    2/06/10 9:40:21 AM Nativa[16486] ssh out:debug1: Authentications that can continue: publickey,password
    debug1: Next authentication method: publickey
    debug1: Offering public key: /Users/macUser/.ssh/id_rsa
    2/06/10 9:40:22 AM Nativa[16486] ssh out:debug1: Authentications that can continue: publickey,password
    debug1: Trying private key: /Users/macUser/.ssh/id_dsa
    debug1: Next authentication method: password
    2/06/10 9:40:22 AM Nativa[16486] ssh out:root@60.70.80.90's password:
    2/06/10 9:40:22 AM Nativa[16486] ssh out:
    2/06/10 9:40:22 AM Nativa[16486] ssh out:debug1: Authentication succeeded (password).
    debug1: Local connections to LOCALHOST:5000 forwarded to remote address 127.0.0.1:5000
    2/06/10 9:40:22 AM Nativa[16486] ssh out:debug1: Local forwarding listening on ::1 port 5000.
    debug1: channel 0: new [port listener]
    debug1: Local forwarding listening on 127.0.0.1 port 5000.
    debug1: channel 1: new [port listener]
    debug1: Requesting no-more-sessions@openssh.com
    debug1: Entering interactive session.
    2/06/10 9:40:47 AM Nativa[16486] ssh tunnel error: SSH: Process timeout.
    2/06/10 9:40:47 AM Nativa[16486] unable to connect
    2/06/10 9:40:47 AM Nativa[16486] error: SSH: Process timeout.
    2/06/10 9:40:53 AM Nativa[16486] Session (null) is now closed.

  • jocker

    jocker June 2nd, 2010 @ 02:05 AM

    I just created a clean install of Debian (squeeze) and tried to connect, this doesn't work ether. (ill Install Debian Lenny next and see if it helps)
    I install rtorrent and setup:
    scgi_port = 127.0.0.1:5000
    In the config file (and rtorrent reports it running)

    2/06/10 10:01:05 AM Nativa[16486] Used SSH Command : ssh -N -L 5000:127.0.0.1:5000 root@10.10.1.21 -p 22
    2/06/10 10:01:05 AM Nativa[16486] Session (null) is now launched.
    2/06/10 10:01:05 AM Nativa[16486] ssh out:spawn ssh -N -L 5000:127.0.0.1:5000 root@10.10.1.21 -p 22 -v
    2/06/10 10:01:05 AM Nativa[16486] ssh out:OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
    2/06/10 10:01:05 AM Nativa[16486] ssh out:debug1: Reading configuration data /etc/ssh_config

    debug1: Connecting to 10.10.1.21 [10.10.1.21] port 22.

    debug1: Connection established.

    debug1: identity file /Users/macUser/.ssh/identity type -1

    debug1: identity file /Users/macUser/.ssh/id_rsa type 1

    debug1: identity file /Users/macUser/.ssh/id_dsa type -1

    2/06/10 10:01:05 AM Nativa[16486] ssh out:debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-3

    debug1: match: OpenSSH_5.5p1 Debian-3 pat OpenSSH*

    debug1: Enabling compatibility mode for protocol 2.0

    debug1: Local version string SSH-2.0-OpenSSH_5.2

    2/06/10 10:01:05 AM Nativa[16486] ssh out:debug1: SSH2_MSG_KEXINIT sent

    debug1: SSH2_MSG_KEXINIT received

    debug1: kex: server->client aes128-ctr hmac-md5 none

    debug1: kex: client->server aes128-ctr hmac-md5 none

    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent

    debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP

    2/06/10 10:01:05 AM Nativa[16486] ssh out:debug1: SSH2_MSG_KEX_DH_GEX_INIT sent

    debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY

    2/06/10 10:01:05 AM Nativa[16486] ssh out:debug1: Host '10.10.1.21' is known and matches the RSA host key.

    debug1: Found key in /Users/macUser/.ssh/known_hosts:8

    2/06/10 10:01:05 AM Nativa[16486] ssh out:debug1: ssh_rsa_verify: signature correct

    2/06/10 10:01:05 AM Nativa[16486] ssh out:debug1: SSH2_MSG_NEWKEYS sent

    debug1: expecting SSH2_MSG_NEWKEYS

    debug1: SSH2_MSG_NEWKEYS received

    debug1: SSH2_MSG_SERVICE_REQUEST sent

    2/06/10 10:01:05 AM Nativa[16486] ssh out:debug1: SSH2_MSG_SERVICE_ACCEPT received

    2/06/10 10:01:05 AM Nativa[16486] ssh out:debug1: Authentications that can continue: publickey,password

    debug1: Next authentication method: publickey

    debug1: Offering public key: /Users/macUser/.ssh/id_rsa

    2/06/10 10:01:05 AM Nativa[16486] ssh out:debug1: Authentications that can continue: publickey,password

    debug1: Trying private key: /Users/macUser/.ssh/identity

    debug1: Trying private key: /Users/macUser/.ssh/id_dsa

    debug1: Next authentication method: password

    2/06/10 10:01:05 AM Nativa[16486] ssh out:root@10.10.1.21's password:
    2/06/10 10:01:05 AM Nativa[16486] ssh out:
    2/06/10 10:01:05 AM Nativa[16486] ssh out:debug1: Authentication succeeded (password).

    debug1: Local connections to LOCALHOST:5000 forwarded to remote address 127.0.0.1:5000

    debug1: Local forwarding listening on ::1 port 5000.

    2/06/10 10:01:05 AM Nativa[16486] ssh out:debug1: channel 0: new [port listener]

    debug1: Local forwarding listening on 127.0.0.1 port 5000.

    debug1: channel 1: new [port listener]

    debug1: Requesting no-more-sessions@openssh.com

    debug1: Entering interactive session.

    2/06/10 10:01:35 AM Nativa[16486] ssh tunnel error: SSH: Process timeout.
    2/06/10 10:01:35 AM Nativa[16486] unable to connect
    2/06/10 10:01:35 AM Nativa[16486] error: SSH: Process timeout.

  • jocker

    jocker June 2nd, 2010 @ 03:15 AM

    Nop, I get the same error on Debian Lenny

  • jocker

    jocker June 2nd, 2010 @ 03:22 AM

    What OS did you test the tunnel on where it worked?

  • vovasty

    vovasty June 2nd, 2010 @ 03:48 AM

    I tested it on Macos X and openwrt. Problem is your server responds too long.

  • vovasty
  • vovasty
  • vovasty

    vovasty June 2nd, 2010 @ 04:27 AM

    hmm, no, this build won't help. can you, please, run command

    /Applications/Nativa.app/Contents/Resources/SSHCommand.sh "ssh -N -L 5000:127.0.0.1:5000 root@10.10.1.21 -p 22"
    

    press enter just after execution
    and post result here?

  • jocker

    jocker June 2nd, 2010 @ 04:42 AM

    My virtual server:
    MBP:~ macUser$ /Applications/Nativa.app/Contents/Resources/SSHCommand.sh "ssh -N -L 5000:127.0.0.1:5000 root@10.10.1.11 -p 22"
    can't read "expect_out(1,string)": no such variable

    while executing
    

    "set password $expect_out(1,string)"

    (file "/Applications/Nativa.app/Contents/Resources/SSHCommand.sh" line 22)
    

    My remote server:
    MBP:~ macUser$ /Applications/Nativa.app/Contents/Resources/SSHCommand.sh "ssh -N -L 5000:127.0.0.1:5000 root@60.70.80.90 -p 22"
    can't read "expect_out(1,string)": no such variable

    while executing
    

    "set password $expect_out(1,string)"

    (file "/Applications/Nativa.app/Contents/Resources/SSHCommand.sh" line 22)
    

    Alright, I got some ... kinda good news.
    I can now connect to my virtual Debian server using the original copy of Nativa (downloaded from the homepage), that works, but when I use any of your builds here it times out (to my virtual debian).

    I tried connecting again to my remote server with the orig program (the one that works for my virtual Debian) but it still wont connect.

    ——
    Ok, if I manually create the tunnel for my remote server I can get Nativa working on my remote server, but it only loads up the torrents and speed once, then I get a heap load of timeouts in the Console :P

  • jocker

    jocker June 2nd, 2010 @ 04:44 AM

    oh my bad, didn't read your instructions:

    /Applications/Nativa.app/Contents/Resources/SSHCommand.sh "ssh -N -L 5000:127.0.0.1:5000 root@70.80.80.90 -p 22"

    spawn ssh -N -L 5000:127.0.0.1:5000 root@70.80.80.90 -p 22
    root@70.80.80.90's password: WRONG_PASSWORD

  • jocker

    jocker June 2nd, 2010 @ 04:45 AM

    I got rid of the auto login for now BTW :P

  • vovasty

    vovasty June 2nd, 2010 @ 05:30 AM

    instead of just enter you can enter your actual password.

    ok, try this command for establishing tunnel manually with your REMOTE server:

    ssh -N -L 5000:127.0.0.1:5000 root@70.80.80.90 -p 22 -C -o CompressionLevel=9 -2
    

    this should eliminate timeouts (this will turn on compression).

  • jocker

    jocker June 2nd, 2010 @ 05:42 AM

    Ah yes, it works allot better now, I still get a few timeouts:
    2/06/10 1:39:04 PM Nativa[20435] update download list error: Network timeout

    But for the most part it works pretty well :)

    On average I get 369.603ms ping to my server, kinda highish I guess.

  • vovasty

    vovasty June 2nd, 2010 @ 06:13 AM

    Never give up! :)

    try this one. On "Advanced tab" set compression level 9 and check "force protocol v2"

  • vovasty
  • jocker

    jocker June 2nd, 2010 @ 06:40 AM

    I love your attitude :)

    Alright, tried it again: (without forced protocol v2)

    2/06/10 2:30:58 PM Nativa[20890] Used SSH Command : ssh -C -o CompressionLevel=9 -N -L 5000:127.0.0.1:5000 root@1.1.1.1 -p 22
    2/06/10 2:30:58 PM Nativa[20890] Session (null) is now launched.
    2/06/10 2:30:58 PM Nativa[20890] ssh out:spawn ssh -C -o CompressionLevel=9 -N -L 5000:127.0.0.1:5000 root@1.1.1.1 -p 22 -v
    2/06/10 2:30:58 PM Nativa[20890] ssh out:OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
    2/06/10 2:30:58 PM Nativa[20890] ssh out:debug1: Reading configuration data /etc/ssh_config

    2/06/10 2:30:58 PM Nativa[20890] ssh out:debug1: Connecting to 1.1.1.1 [1.1.1.1] port 22.

    2/06/10 2:30:59 PM Nativa[20890] ssh out:debug1: Connection established.

    2/06/10 2:30:59 PM Nativa[20890] ssh out:debug1: identity file /Users/macUser/.ssh/identity type -1

    debug1: identity file /Users/macUser/.ssh/id_rsa type 1

    debug1: identity file /Users/macUser/.ssh/id_dsa type -1

    2/06/10 2:30:59 PM Nativa[20890] ssh out:debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-4

    debug1: match: OpenSSH_5.5p1 Debian-4 pat OpenSSH*

    debug1: Enabling compatibility mode for protocol 2.0

    debug1: Local version string SSH-2.0-OpenSSH_5.2

    debug1: SSH2_MSG_KEXINIT sent

    2/06/10 2:30:59 PM Nativa[20890] ssh out:debug1: SSH2_MSG_KEXINIT received

    debug1: kex: server->client aes128-ctr hmac-md5 zlib@openssh.com

    debug1: kex: client->server aes128-ctr hmac-md5 zlib@openssh.com

    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent

    debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP

    2/06/10 2:31:01 PM Nativa[20890] ssh out:debug1: SSH2_MSG_KEX_DH_GEX_INIT sent

    debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY

    2/06/10 2:31:01 PM Nativa[20890] ssh out:debug1: Host '1.1.1.1' is known and matches the RSA host key.

    debug1: Found key in /Users/macUser/.ssh/known_hosts:2

    2/06/10 2:31:01 PM Nativa[20890] ssh out:debug1: ssh_rsa_verify: signature correct

    debug1: SSH2_MSG_NEWKEYS sent

    debug1: expecting SSH2_MSG_NEWKEYS

    debug1: SSH2_MSG_NEWKEYS received

    debug1: SSH2_MSG_SERVICE_REQUEST sent

    2/06/10 2:31:02 PM Nativa[20890] ssh out:debug1: SSH2_MSG_SERVICE_ACCEPT received

    2/06/10 2:31:02 PM Nativa[20890] ssh out:debug1: Authentications that can continue: publickey,password

    debug1: Next authentication method: publickey

    debug1: Offering public key: /Users/macUser/.ssh/id_rsa

    2/06/10 2:31:03 PM Nativa[20890] ssh out:debug1: Authentications that can continue: publickey,password

    debug1: Trying private key: /Users/macUser/.ssh/identity

    debug1: Trying private key: /Users/macUser/.ssh/id_dsa

    debug1: Next authentication method: password

    2/06/10 2:31:03 PM Nativa[20890] ssh out:root@1.1.1.1's password:
    2/06/10 2:31:03 PM Nativa[20890] ssh out:
    2/06/10 2:31:03 PM Nativa[20890] ssh out:debug1: Enabling compression at level 6.

    debug1: Authentication succeeded (password).

    2/06/10 2:31:03 PM Nativa[20890] ssh out:debug1: Local connections to LOCALHOST:5000 forwarded to remote address 127.0.0.1:5000

    debug1: Local forwarding listening on ::1 port 5000.

    debug1: channel 0: new [port listener]

    debug1: Local forwarding listening on 127.0.0.1 port 5000.

    debug1: channel 1: new [port listener]

    debug1: Requesting no-more-sessions@openssh.com

    debug1: Entering interactive session.

    2/06/10 2:32:28 PM Nativa[20890] ssh tunnel error: SSH: Process timeout.
    2/06/10 2:32:28 PM Nativa[20890] unable to connect
    2/06/10 2:32:28 PM Nativa[20890] error: SSH: Process timeout.

    Alright, tried it again: (— with — forced protocol v2)
    2/06/10 2:35:22 PM Nativa[20890] Used SSH Command : ssh -2 -C -o CompressionLevel=9 -N -L 5000:127.0.0.1:5000 root@1.1.1.1 -p 22
    2/06/10 2:35:22 PM Nativa[20890] Session (null) is now launched.
    2/06/10 2:35:22 PM Nativa[20890] ssh out:spawn ssh -2 -C -o CompressionLevel=9 -N -L 5000:127.0.0.1:5000 root@1.1.1.1 -p 22 -v
    2/06/10 2:35:22 PM Nativa[20890] ssh out:OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
    2/06/10 2:35:22 PM Nativa[20890] ssh out:debug1: Reading configuration data /etc/ssh_config

    2/06/10 2:35:22 PM Nativa[20890] ssh out:debug1: Connecting to 1.1.1.1 [1.1.1.1] port 22.

    2/06/10 2:35:23 PM Nativa[20890] ssh out:debug1: Connection established.

    2/06/10 2:35:23 PM Nativa[20890] ssh out:debug1: identity file /Users/macUser/.ssh/id_rsa type 1

    debug1: identity file /Users/macUser/.ssh/id_dsa type -1

    2/06/10 2:35:23 PM Nativa[20890] ssh out:debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-4

    debug1: match: OpenSSH_5.5p1 Debian-4 pat OpenSSH*

    debug1: Enabling compatibility mode for protocol 2.0

    debug1: Local version string SSH-2.0-OpenSSH_5.2

    2/06/10 2:35:24 PM Nativa[20890] ssh out:debug1: SSH2_MSG_KEXINIT sent

    2/06/10 2:35:24 PM Nativa[20890] ssh out:debug1: SSH2_MSG_KEXINIT received

    debug1: kex: server->client aes128-ctr hmac-md5 zlib@openssh.com

    debug1: kex: client->server aes128-ctr hmac-md5 zlib@openssh.com

    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent

    debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP

    2/06/10 2:35:25 PM Nativa[20890] ssh out:debug1: SSH2_MSG_KEX_DH_GEX_INIT sent

    debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY

    2/06/10 2:35:25 PM Nativa[20890] ssh out:debug1: Host '1.1.1.1' is known and matches the RSA host key.

    debug1: Found key in /Users/macUser/.ssh/known_hosts:2

    2/06/10 2:35:25 PM Nativa[20890] ssh out:debug1: ssh_rsa_verify: signature correct

    debug1: SSH2_MSG_NEWKEYS sent

    debug1: expecting SSH2_MSG_NEWKEYS

    debug1: SSH2_MSG_NEWKEYS received

    debug1: SSH2_MSG_SERVICE_REQUEST sent

    2/06/10 2:35:26 PM Nativa[20890] ssh out:debug1: SSH2_MSG_SERVICE_ACCEPT received

    2/06/10 2:35:27 PM Nativa[20890] ssh out:debug1: Authentications that can continue: publickey,password

    debug1: Next authentication method: publickey

    debug1: Offering public key: /Users/macUser/.ssh/id_rsa

    2/06/10 2:35:28 PM Nativa[20890] ssh out:debug1: Authentications that can continue: publickey,password

    debug1: Trying private key: /Users/macUser/.ssh/id_dsa

    debug1: Next authentication method: password

    2/06/10 2:35:28 PM Nativa[20890] ssh out:root@1.1.1.1's password:
    2/06/10 2:35:28 PM Nativa[20890] ssh out:
    2/06/10 2:35:28 PM Nativa[20890] ssh out:debug1: Enabling compression at level 6.

    debug1: Authentication succeeded (password).

    debug1: Local connections to LOCALHOST:5000 forwarded to remote address 127.0.0.1:5000

    2/06/10 2:35:28 PM Nativa[20890] ssh out:debug1: Local forwarding listening on ::1 port 5000.

    debug1: channel 0: new [port listener]

    debug1: Local forwarding listening on 127.0.0.1 port 5000.

    debug1: channel 1: new [port listener]

    debug1: Requesting no-more-sessions@openssh.com

    debug1: Entering interactive session.

    2/06/10 2:36:52 PM Nativa[20890] ssh tunnel error: SSH: Process timeout.
    2/06/10 2:36:52 PM Nativa[20890] unable to connect
    2/06/10 2:36:52 PM Nativa[20890] error: SSH: Process timeout.

  • vovasty

    vovasty June 2nd, 2010 @ 07:24 AM

    I'll kill myself if it will not work!

    please, try with password and key

  • vovasty
  • jocker

    jocker June 2nd, 2010 @ 09:51 AM

    Oh sweet, it connects all by it's self now (using the pass key) :)

    Im still getting allot of timeouts though.
    Though I do have about 50-60 torrents running :P

    2/06/10 5:20:26 PM Nativa[1410] Used SSH Command : ssh -2 -C -o CompressionLevel=9 -N -L 5000:127.0.0.1:5000 root@1.1.1.1 -p 22
    2/06/10 5:20:26 PM Nativa[1410] Session (null) is now launched.
    2/06/10 5:20:26 PM SIMBL Agent[330] warning: failed to get scripting definition from /Users/macUser/Downloads/Nativa 5.app; it may not be scriptable.
    2/06/10 5:20:26 PM GrowlHelperApp[410] Auto-discovered registration ticket in Nativa (located at /Users/macUser/Downloads/Nativa 5.app)
    2/06/10 5:20:26 PM Nativa[1410] ssh out:spawn ssh -2 -C -o CompressionLevel=9 -N -L 5000:127.0.0.1:5000 root@1.1.1.1 -p 22
    2/06/10 5:20:26 PM Nativa[1410] ssh out:-v
    OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
    debug1: Reading configuration data /etc/ssh_config

    debug1: Connecting to 1.1.1.1 [1.1.1.1] port 22.

    2/06/10 5:20:27 PM Nativa[1410] ssh out:debug1: Connection established.

    2/06/10 5:20:27 PM Nativa[1410] ssh out:debug1: identity file /Users/macUser/.ssh/id_rsa type 1

    debug1: identity file /Users/macUser/.ssh/id_dsa type -1

    2/06/10 5:20:27 PM Nativa[1410] ssh out:debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-4

    debug1: match: OpenSSH_5.5p1 Debian-4 pat OpenSSH*

    debug1: Enabling compatibility mode for protocol 2.0

    debug1: Local version string SSH-2.0-OpenSSH_5.2

    debug1: SSH2_MSG_KEXINIT sent

    2/06/10 5:20:27 PM Nativa[1410] ssh out:debug1: SSH2_MSG_KEXINIT received

    debug1: kex: server->client aes128-ctr hmac-md5 zlib@openssh.com

    debug1: kex: client->server aes128-ctr hmac-md5 zlib@openssh.com

    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent

    debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP

    2/06/10 5:20:28 PM Nativa[1410] ssh out:debug1: SSH2_MSG_KEX_DH_GEX_INIT sent

    debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY

    2/06/10 5:20:28 PM Nativa[1410] ssh out:debug1: Host '1.1.1.1' is known and matches the RSA host key.

    debug1: Found key in /Users/macUser/.ssh/known_hosts:2

    2/06/10 5:20:28 PM Nativa[1410] ssh out:debug1: ssh_rsa_verify: signature correct

    debug1: SSH2_MSG_NEWKEYS sent

    debug1: expecting SSH2_MSG_NEWKEYS

    2/06/10 5:20:28 PM Nativa[1410] ssh out:debug1: SSH2_MSG_NEWKEYS received

    debug1: SSH2_MSG_SERVICE_REQUEST sent

    2/06/10 5:20:29 PM Nativa[1410] ssh out:debug1: SSH2_MSG_SERVICE_ACCEPT received

    2/06/10 5:20:29 PM Nativa[1410] ssh out:debug1: Authentications that can continue: publickey,password

    debug1: Next authentication method: publickey

    debug1: Offering public key: /Users/macUser/.ssh/id_rsa

    2/06/10 5:20:29 PM Nativa[1410] ssh out:debug1: Server accepts key: pkalg ssh-rsa blen 277

    2/06/10 5:20:30 PM Nativa[1410] ssh out:debug1: Enabling compression at level 6.

    debug1: Authentication succeeded (publickey).

    debug1: Local connections to LOCALHOST:5000 forwarded to remote address 127.0.0.1:5000

    2/06/10 5:20:30 PM Nativa[1410] ssh out:debug1: Local forwarding listening on ::1 port 5000.

    debug1: channel 0: new [port listener]

    debug1: Local forwarding listening on 127.0.0.1 port 5000.

    debug1: channel 1: new [port listener]

    debug1: Requesting no-more-sessions@openssh.com

    debug1: Entering interactive session.

    CONNECTED
    2/06/10 5:20:32 PM Nativa[1410] update download list error: Network timeout
    2/06/10 5:21:22 PM Nativa[1410] -[NSTextFieldCell setControlHover:]: unrecognized selector sent to instance 0x1005121f0

    2/06/10 5:48:46 PM Nativa[1637] update download list error: Network timeout
    2/06/10 5:48:49 PM Nativa[1637] Unable to get global upload speed limit: Network timeout
    2/06/10 5:48:52 PM Nativa[1637] update download list error: Network timeout
    2/06/10 5:48:55 PM Nativa[1637] update download list error: Network timeout
    2/06/10 5:48:58 PM Nativa[1637] update download list error: Network timeout
    2/06/10 5:49:01 PM Nativa[1637] update download list error: Network timeout

  • jocker

    jocker June 2nd, 2010 @ 11:10 AM

    Oh yeah one more little issue I came across, some of the file sizes aren't really coming though correct unless I have an extremely larger hard drive on my server then I thought I did :P

    That 3rd torrent should show "36049 MB"
    But i'v herd before people having size issues with SCGI, so there might not be much you can do about it.

  • vovasty

    vovasty June 2nd, 2010 @ 08:44 PM

    • State changed from “new” to “resolved”

    About timeouts. It can happen due to following reasons:
    * rtorrent overload (hashing, allocating large torrent, etc) * slow network (your case:) ) * sever overload

    in next release I'll try to optimize requests to rtorrent, so it will decrease size of data sent to rtorrent.

    Regarding incorrect sizes.

    You should compile rtorrent against "advanced" version of xml-rpc (1.07 or 1.12, you need checkout it from svn). Usually, rtorrent compiled with 1.06, which not working with large numbers.

  • jocker

    jocker June 3rd, 2010 @ 09:04 AM

    Alright, thats awesome.

    Yeah thought it was todo with rpc something :P

    Thanks again for all your help, really appreciate it.

  • vovasty
  • dkobzev

    dkobzev June 14th, 2010 @ 11:29 PM

    Что то последняя сборка из гита не хочет собираться, ругается на неверную ссылку sshport или что-то подобное. Давненько не следил, отсутствовал. Просмотрю последние изменения поточнее отпишу.

  • vovasty

    vovasty June 14th, 2010 @ 11:43 PM

    Вообще-то я использую mercurial ;)

    Бранч default должен работать (там последние фиксы к ssh)
    Второй бранч некомпилируемый пока что (с диалогом добавления торрентов)

  • dkobzev

    dkobzev June 15th, 2010 @ 12:03 AM

    Ну они похожи. Брал как раз из дефолта.
    Вот что пишет:

    error: synthesized property 'sshLocalPort' must either be named the same as a compatible ivar or must explicitly name an ivar
    
  • vovasty

    vovasty June 15th, 2010 @ 03:40 AM

    у мне все ок. Посмотрите на предмет локальных изменений и тп.

  • dkobzev

    dkobzev June 18th, 2010 @ 02:09 PM

    Затер локальную. Скачал свежий default. Тоже самое.
    В окне настроек нашел только поля port и sshPort. sshLocalPort нет. Может потому что Xcode 3.2.3 ошибка и всплывает у меня? На более старых сдк возможно ограничивается только варнингом.

  • dkobzev

    dkobzev June 18th, 2010 @ 02:15 PM

    Хм. Судя по этому: http://aramzamzam.lighthouseapp.com/projects/46068/tickets/23/a/540... xib старый выкачивается. Поля LocalPort нет.

  • dkobzev

    dkobzev June 18th, 2010 @ 02:46 PM

    Ничего не понимаю. В xib есть sshLocalPort но при открытии в IB выглядит окно так.

  • vovasty

    vovasty June 19th, 2010 @ 02:13 AM

    sshLocalPort уехал в таб Advanced

  • dkobzev

    dkobzev June 19th, 2010 @ 01:26 PM

    Да, уже нашел. И нашел почему не собирается. В классе не объявлен sshLocalPort.
    Теперь что-то growl найти не может. Линкуется, а при запуске динамическую библиотеку ищет не там. Раньше вроде бы статически эти библиотека линковалась?

  • vovasty

    vovasty June 20th, 2010 @ 06:44 AM

    Да, действительно, не была обьявлена переменная. Любопытно: в 3.2.2 не было ни warnings ни errors.
    Все фреймворки линкуются динамически. Чтобы все было хорошо, вам понадобятся Sparkle и Growl в директории frameworks в папке проекта
    ПС
    Спасибо за находку, но не могли бы вы в следующий раз заводить отдельный тикет?

  • dkobzev

    dkobzev June 20th, 2010 @ 07:17 PM

    Да, действительно, не была обьявлена переменная. Любопытно: в 3.2.2 не было ни warnings ни errors. Все фреймворки линкуются динамически. Чтобы все было хорошо, вам понадобятся Sparkle и Growl в директории frameworks в папке проекта

    У меня Sparkle и Growl в директории frameworks но выше по дереву лежали. Общие для нескольких проектов. Теперь так не собирается.

    ПС Спасибо за находку, но не могли бы вы в следующий раз заводить отдельный тикет?

    Ок.

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

native Mac OS X client for rtorrent

more information: http://www.aramzamzam.net/nativa/

Shared Ticket Bins

People watching this ticket

Referenced by

Pages