Page 1 of 1

Help with SSH to LAN daemon

Posted: Sun Nov 27, 2011 2:10 pm
by cristofaro
Hi everyone. I'm trying to connect to my Ubuntu server running the deluge daemon via the Deluge GTK UI from a Windows box over my LAN. Following the thin client instructions (http://goo.gl/jNzQJ) I'm stuck on the step of creating an SSH tunnel to my Ubuntu box. I am able to enter the following command using PuTTY (ssh -fNL 127.0.0.2:58846:localhost:58846 <server>) but I suspect it is not working as I haven't added 127.0.0.2 to local loopback (I have no idea how to even do this on windows). Anyone know what I'm doing wrong? Perhaps there some other software I can get to make this eaiser?

I'm reposting this from my IRC query on this issue eariler. Thanks!

Re: Help with SSH to LAN daemon

Posted: Mon Nov 28, 2011 1:55 am
by johnnyg
What version of Windows?

A quick google seems to suggest that 127.0.0.2 is broken in Windows XP SP2 but it should work in Windows 7.

Re: Help with SSH to LAN daemon

Posted: Mon Nov 28, 2011 4:18 am
by cristofaro
I'm using Windows 7 x64.

I use the command "ssh -fNL 127.0.0.2:58846:localhost:58846 192.168.0.2" in PuTTY and login to the remote server. Then fire up local Deluge and add 127.0.0.2:58846 to the hosts. Connecting to this host is greyed out (as per attached screen_1.png). Perhaps it is something wrong with the method I am using to add the host to deluge and not the local loopback or SSH fowarding.

Re: Help with SSH to LAN daemon

Posted: Mon Nov 28, 2011 2:10 pm
by Cas
I did a quick test on my Win7 machine and found you need to have 'Local ports accepts connections from other hosts' enabled.

These screenshots shows what you need to configure in putty:
putty1.png
putty1.png (41.71 KiB) Viewed 8710 times
putty2.png
putty2.png (40.31 KiB) Viewed 8710 times

Re: Help with SSH to LAN daemon

Posted: Tue Nov 29, 2011 4:38 am
by cristofaro
Thank you Cas. That seemed to at least foward the ports correctly. Unfortuantly however is seems I may have another problem.

The status indicator remains red even though the auth details match the details in ~/.config/deluge/auth. When I press the connect icon which is no longer greyed out the Deluge client just says "not connected". Interestingly I am also getting this problem replicated on the WebUI which can no longer connect but used to connect fine. Obviously I check to see if the deluged daemon was running on the server:

Code: Select all

ps -u deluge-server
  PID TTY          TIME CMD
 1034 ?        00:00:11 deluged
 1055 ?        00:00:02 deluge-web
Even more strangely the torrent autoadd folder which is Samba shared over the network still works fine! .torrent files I place there dissapear and start downloading to the incomplete torrents directory.

I'm pretty confused...

Re: Help with SSH to LAN daemon

Posted: Tue Nov 29, 2011 7:37 pm
by Cas
It should go to green if the user/pass are correct. I'm not sure what the issue is but if you could try with a fresh config to see if you can replicate the issue.

Re: Help with SSH to LAN daemon

Posted: Wed Nov 30, 2011 1:26 pm
by cristofaro
Alright. I'll give that a go when I next get a chance.