Solved: Linux Socks Proxy over SSH - need help

Discussion in 'Linux' started by Durzo, Nov 8, 2013.

  1. Durzo

    Durzo Junior Member

    Problem solved:
    sshpass -p "*******" ssh -N ******* -D
    It works when executed as a regular user and NOT root

    I really need some help here.
    All I want is to automatically create a Socks Proxy over SSH that stores my password.
    Everything I've tried failed.

    Putty is unable to store passwords and it always crashes after login.
    KSTM/KDE SSH Tunnel Manager does not work, I don't get an error but the proxy doesn't work.
    sshpass + ssh over commandline doesn't work either.
    sshpass -p myPasswrd ssh -N -D1080

    I can't express how annoyed I am right now, in Windows I use Bitvise Tunnelier which works perfectly but it's not available for Linux.

    I hope someone can help me.

    Browser settings:
    SOCKS Host: Port 1080
    SOCKS v5

    OS: Arch Linux x86_64 with KDE
  2. JackCarver

    JackCarver Junior Member

    sshpass -p "myPassword" ssh -N -D

    works for me in Iceweasel@debian-wheezy. Set socks Host Port 8020 or whatever Port you want in Browser.
  3. Durzo

    Durzo Junior Member

    Thanks for your reply. I've just used the same command as you posted (with my username and password of course) but nothing happens when I execute it, just like before.
  4. JackCarver

    JackCarver Junior Member

    What happens then?
  5. Durzo

    Durzo Junior Member

    [root@ArchHell ~]# sshpass -p "*******" ssh -N ******* -D
    [root@ArchHell ~]#

    Update: When I execute it as a regular user and not root it works.
    Thanks for your help.
  6. JackCarver

    JackCarver Junior Member

    Did you ever establish a Connection via ssh to this server? Otherwise the Server IP and Fingerprint isn't in your known hosts file and Linux refuses to connect
  7. JackCarver

    JackCarver Junior Member

    I think sshpass is Not sufficiant to get it in known hosts. You Need First ssh command without sshpass
  8. JackCarver

    JackCarver Junior Member

    Fine that it works now :)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice