You are not logged in.

#1 2009-03-27 10:13:20

DrTankMC
Member
From: Faifield County
Registered: 2009-03-18
Posts: 77

[SOLVED] SSH tunnel won't accept connections

Hello, first off i'd like to say that i am not extremely familiar with this topic so please excuse me if i sound noobish with this question.

Basically, I have always used an SSH tunnel in Deluge as a tracker proxy in Ubuntu/Suse/Debian and have had no problems.  Recently i've tried to do this in Arch with no luck.  I installed OpenSSH and modified /etc/hosts.allow accordingly.  However, Deluge gives tracker errors when i load a torrent and will not connect.  I fear that i have not set something that i should have because the Deluge error is something like "host not found (authoritative)" which i have never seen before.  I also tried editing the hosts.deny file but no luck.

I can connect to the tunnel fine from a terminal, using the syntax: ssh username@site.com -D (port number).  Also, i know there is not a problem with the host of the tunnel because i can connect fine in Deluge on my laptop which runs Ubuntu.

Am i missng a configuration step?  I could not find anything on the forums or wiki besides the OpenSSH page which has not worked for me.

Thanks!

Last edited by DrTankMC (2009-04-11 03:01:00)


Long live the Organization for the Organized!!!

Ich möchte die Tomatensuppe!

Offline

#2 2009-03-27 11:00:31

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: [SOLVED] SSH tunnel won't accept connections

This is a totally random guess, but is your machine hostname set properly in /etc/hosts?

Offline

#3 2009-03-27 16:53:41

DrTankMC
Member
From: Faifield County
Registered: 2009-03-18
Posts: 77

Re: [SOLVED] SSH tunnel won't accept connections

Yes, it is set right.


Long live the Organization for the Organized!!!

Ich möchte die Tomatensuppe!

Offline

#4 2009-03-27 17:12:23

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] SSH tunnel won't accept connections

Check ~/.ssh/config in ubuntu and see what's in there.
I'm also using ssh to open a tunnel to a remote machine and usually when I want to open a tunnel I use -L localport:localhost:remoteport or -L localport:httpproxy:proxyport, I've never used -D but maybe I'm doing something different.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2009-03-27 18:00:25

DrTankMC
Member
From: Faifield County
Registered: 2009-03-18
Posts: 77

Re: [SOLVED] SSH tunnel won't accept connections

There is a ~/.ssh folder but no config file or folder in ubuntu.

I originally followed a guide online which now can only be found here: http://web.archive.org/web/200711200104 … -over-ssh/


Long live the Organization for the Organized!!!

Ich möchte die Tomatensuppe!

Offline

#6 2009-03-27 21:44:38

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] SSH tunnel won't accept connections

This got me curious and I have tried to make and finally succeeded to make firefox use a socks proxy by following:
http://lifehacker.com/software/ssh/geek … 237227.php
https://calomel.org/firefox_ssh_proxy.html

It seems dns queries do not go though the socks proxy (with firefox at least) but in your case I don't know. That error sounds like the kind of answer a dns server gives when it can't translate name to ip .... I'm fresh out of any other ideas and I'm out of my league here hmm

I have stumbled upon this http://forum.deluge-torrent.org/viewtop … 12&t=14575 seems quite recent ... maybe you have just stumbled upon a bug.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#7 2009-03-28 11:09:21

DrTankMC
Member
From: Faifield County
Registered: 2009-03-18
Posts: 77

Re: [SOLVED] SSH tunnel won't accept connections

Yes, it is possible that this is a bug in Deluge, since the new versions (1.x series i think) had their plugins re-written from scratch.  On my laptop, I am stuck using Ubuntu Hardy (one of only a few distros that work due to Intel video driver issues) and the Deluge version is 0.5.x so I can't really test that in Arch.


Long live the Organization for the Organized!!!

Ich möchte die Tomatensuppe!

Offline

#8 2009-03-28 11:43:06

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] SSH tunnel won't accept connections

You may try to go here http://www.schlunix.org/archlinux/extra/os/ then select the architecture you use and download deluge 0.5 and try to install it with pacman -U. Its the same as modifying the PKGBUILD and building it from source but there you get it already done. Mind you that these older versions of deluge may not work properly anymore because some other packages got updated meanwhile. Don't forget to backup your current deluge configuration folder. Also before starting the older deluge delete or rename your current configuration folder because I believe something changed in the config files when deluge reached 1.0.

You may also give tsocks a try with your current deluge I have stumbled upon that too but forgot to leave a link before http://www.plenz.com/tunnel-everything I guess it may be less of a hassle than changing the deluge version. Just configure deluge _not_ to use socks and follow the guide.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#9 2009-04-11 02:58:30

DrTankMC
Member
From: Faifield County
Registered: 2009-03-18
Posts: 77

Re: [SOLVED] SSH tunnel won't accept connections

Ah ha! Figured this one out.  In all previous Linuxes i have used i would simply use "localhost" in the Deluge proxy settings.  On a whim, i changed it to "arch" which is the hostname i use and it worked!  Quite a simple error, but i figured localhost would translate the hostname but i guess not.  Thanks.


Long live the Organization for the Organized!!!

Ich möchte die Tomatensuppe!

Offline

Board footer

Powered by FluxBB