1. You are using SSH key-based authentication
If the server already has your authorized_keys configured, then when you run:
ssh -D 1080 -C -q -N -p ( your ssh port ) yourusername@your_ip_ssh
โฆand it doesnโt ask for a password, it means the connection is successful because your SSH key is already recognized by the server.
To check if the tunnel is actually active:
netstat -tlnp | grep 1080
Or using ss:
ss -tlnp | grep 1080
You should see output like this:
tcp LISTEN 0 128 127.0.0.1:1080 *:* users:(("ssh",pid=xxxx,fd=3))
That means your SOCKS proxy is running on port 1080 โ
๐น 2. Youโre running SSH without a login shell (because of the -N option)
The -N option means no remote command or shell session will be opened, so you wonโt see any login prompt or output.
Thatโs also normal โ the tunnel stays active in the background.
If you remove -q and -N, for example:
ssh -D 1080 -C -p (port) yourUsersername@your_ip_ssh_server
youโll enter the remote shell (youโll see the login prompt and normal SSH output).
๐น 3. Check if the tunnel is really working
Try setting your browser as follows:
- SOCKS Host:
127.0.0.1 - Port:
1080 - SOCKS v5
- Check โProxy DNS through SOCKS v5โ
Then open https://whatismyipaddress.com/
โ If your IP changes to your SSH serverโs IP, it means the tunnel is working properly. โ
Leave a Reply