ok, i've been told to do this with putty which is for windows, but i wanna do it via terminal using bash. how do i set up the tunneling?can someone help out?
1. In Putty, on the 'Session' configuration screen set it to connect using SSH to biscotti.cic.hull.ac.uk or nervosa.cic.hull.ac.uk as normal.
2. Putty SSH tunnel configuration screenshotStill in Putty, select the 'Tunnels' section under 'SSH' and in the bottom section labelled 'Add new forwarded port' enter '4000' for 'Source port' and 'alexandria.cic.hull.ac.uk:5432' as 'Destination'. Press the 'Add' button. The screen should look like this:
3. Press the 'Open' button in Putty to initiate the connection. Log in as normal and leave Putty running - it will catch all traffic on port 4000 and forward it to alexandria (the database server) via the SSH connection to nervosa or biscotti.
1. In Putty, on the 'Session' configuration screen set it to connect using SSH to biscotti.cic.hull.ac.uk or nervosa.cic.hull.ac.uk as normal.
2. Putty SSH tunnel configuration screenshotStill in Putty, select the 'Tunnels' section under 'SSH' and in the bottom section labelled 'Add new forwarded port' enter '4000' for 'Source port' and 'alexandria.cic.hull.ac.uk:5432' as 'Destination'. Press the 'Add' button. The screen should look like this:
3. Press the 'Open' button in Putty to initiate the connection. Log in as normal and leave Putty running - it will catch all traffic on port 4000 and forward it to alexandria (the database server) via the SSH connection to nervosa or biscotti.