Advertise on warmetal.nl!
Click for more information
about advertising here.

Did you find this website useful? Did I save you a lot of time?
Please consider donating to support this site:

 

Create A SSL Port Tunnel

Target: Access a SFTP Server which is only accessible by a production box.
Production Box: AIX with SSH/SSL capabilities, login is possible.
SFTP Server: Login credentials are available.

Used Tools: Putty for the tunnel, WinSCP to connect

Create A Tunnel

  • Open and load the putty profile of the server who is able to access the sftp server.
  • Go to Connection → SSH → Tunnels
  • Fill in the Source Port, any port that's not in use and above the 1024 will do.
  • Fill in the Destination address, and add the port the sftp server is listening on. This is typically port 22, so: <ipaddress>:22
  • Check the Local and the IPv4 buttons
  • And click Add:

porttunnel01.jpg

Configure SFTP Client

  • Open WinSCP and create a new session.
  • As hostname, fill in localhost.
  • As portnumber, fill in the portnumber as configured in the 'Create A Tunnel' section.
  • Click Save:

porttunnel02.jpg

Use The Tunnel

You should now login to the production box using putty, so the tunnel is created. After logging in you can start winscp to use the created session to log into the sftp server.

Discussion

Enter your comment:
 
porttunnel.txt · Last modified: 2010/10/12 09:36 by sjoerd