Sign in to follow this  
Followers 0
delysid

Linux SSH Client Proxy

6 posts in this topic

Does anyone know the proper command to run the ssh console client as a SOCKS proxy on port 8080? I want to encrypt my web traffic on my linux box through another SSH server, but I cannot seem to get the command right.

This is what I have, though it does not work: ssh -2 server.address -l loginID -N -f -L 8080:server.address:22

0

Share this post


Link to post
Share on other sites

Using ssh_server_name.com as an SSH proxy

ssh -D 8080 -C my_user_name@ssh_server_name.com

Then set socks v5 proxy in your browser to 127.0.0.1 and port 8080

Note: If ssh_server_name.com uses a different port for ssh, such as port 1515, then change the ssh command to:

ssh -D 8080 -C my_user_name@ssh_server_name.com -p 1515

Edited by nullkraft
0

Share this post


Link to post
Share on other sites

Thanks so much! I really appreciate it. Looks like I was way off.

0

Share this post


Link to post
Share on other sites

Yep, off by a bit. :) But no farther off than I was when I tried it on my own. Some else finally helped me with it, too.

0

Share this post


Link to post
Share on other sites

i just do the port forward bit but wow thats easier

like i got my server with privoxy loaded but only listening on localhost so i do this

ssh -L 8118:localhost:8116 user@servers.ip

-L-listen (port forward(pipe)

listen on localhost port 8118 to 8116 on my server, it has two instances of privoxy running 8118 is tunneled through tor 8116 has been patched with ipv6 support i change what port i want depending on my needs

then i set firefox use localhost:8118 to pipe all my shit around great stuff works just like if i had privoxy running on localhost

Edited by JimmyRidge
0

Share this post


Link to post
Share on other sites

with the openssh client you can do this

ssh -D<port> <remote-host>

then you have a socks5 listener on localhost port <port>. setup whatever app you're using to use socks5 through 127.0.0.1:<port> and it'll go over the ssh tunnel to <remote-host>.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0