Jump to content
Nytro

SSH Tunneling on Windows

Recommended Posts

SSH Tunneling on Windows

Easy-breezy but necessary to bypass the prying eyes of customers sometimes. When you’re on an internal test you don’t want them to see you googling how to hack thier network in their logs!

Setup Putty for SSH Tunnel (Reason: sets up loopback port (7070) on your local PC and connects over port 22 to the remote shell):

Session: user@yourserver.com:22

Connection>SSH: V2, Enable Compresion

Connection>SSH>Tunnels>Source: 7070, Dynamic, ADD

Session: Save, Open

1.png

2.png

3.png

4.png

or on *nix or cygwin, create an SSH tunnel via command line:

ssh -D 7070 -p 22 user@yourserver.com sleep 9999

Setup Firefox to encrypt to use the tunnel:

Tools > Options > Network > Settings > Manual

Socks: 127.0.0.1: 7070

click ok

Setup Firefox to use Remote DNS (Reason: By default, your local PC will do the DNS by default, but that will show what websites you are going to, so this step sends DNS over the ssh tunnel)

about:config

network.proxy.socks_remote_dns=true

Restart Browser

Reason: configures firefox to route traffic through the tunnel you just made

Test

View everything is over port 22

View ip is different from whatismyip.com

view filter in wireshark: dns, there should be no entries

via digitalcrunch.com

Sursa: http://www.securityaegis.com/ssh-tunneling-on-windows/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...