[Solved] Creating SOCKv5 Proxy

I am trying to create SOCKS5 proxy but could not achieve that .

1- I installed openssh-server and openssh-client

2- I changed the ssh port from 22 to 9999

The server works fine, but when I try to create socks proxy with a dynamic port (-D), it refuses to connect

the command I executed:

ssh -D 9999 usernmae@

The error I got was :

ssh: connect to port 22 : connection refused

What is the problem ???

ssh -p 9999 -fNn -D 8080 user@


ssh -fNn -D 8080 user@ -p 9999

8080 in the local port that is the proxy

-p means you are doing ssh to the servers correct port.