SSH’ing via a gateway host using Putty

(or Kitty to be more exact, which is Putty on steroids)

1. Set up key authentication to your host with PuttyGen & Pageant (ssh-agent for Putty) – or KittyGen & Kageant if you’re using Kitty. Paste your public key into authorized_hosts on the gateway & destination box.

2. Set up your configuration, IP address in session should be of destination (see screenshot, this is an internal IP).

2014-06-21 17_48_43-KiTTY Configuration

3. Go to Connection -> SSH -> Auth. Check Allow agent forwarding.

4. Connection -> Proxy. Enter your gateway IP in Proxy hostname & exclude Hosts, choose Proxy type local & put your username in the box.

In telnet command put

klink.exe %user@%proxyhost -nc %host:%port \n

(or plink.exe if using putty). This will be run first to tunnel your connection through.

2014-06-21 17_52_38-KiTTY Configuration

5. Done!

Leave a Reply

Your email address will not be published. Required fields are marked *