HP OpenVMS Systems Documentation

Content starts here

Standard Port Forwarding

  Table of Contents

  Glossary

  Index

Use local port forwarding when the client application is running on the same system as the SSH client. Use remote port forwarding if the client application is running on remotely. Local and remote port forwarding are specified using the -"L" and -"R" options.

  • From an OpenVMS system to another OpenVMS system

    • Local port forwarding

      On system VMSHOST1, enter the following command:

      $ SSH -"L" 2001:localhost:23 VMSHOST2

      From another window on VMSHOST1, enter the following command:

      $ TELNET localhost 2001

      Result: The login prompt is displayed for VMSHOST2.

    • Remote port forwarding

      On system VMSHOST1, enter the following command:

      $ SSH -"R" 2001:localhost:23 VMSHOST2

      On system VMSHOST2, enter the following command:

      $ TELNET localhost 2001

      Result: The login prompt is displayed for VMSHOST1.

  • From an SSH for OpenVMS client to a non SSH for OpenVMS server

    • Local port forwarding

      On system VMSHOST1, enter the following command:

      $ SSH -"L" 2001:localhost:23 NONVMSHOST

      From another window on VMSHOST1, enter the following command:

      $ TELNET localhost 2001

      Result: The login prompt is displayed for NONVMSHOST.

    • Remote port forwarding

      On system VMSHOST1, enter the following command:

      $ SSH -"R" 2001:localhost:23 NONVMSHOST

      On the system NONVMSHOST, enter the following command:

      # TELNET localhost 2001  

      Result: The login prompt is displayed for VMSHOST1.

  • From a non SSH for OpenVMS client to an SSH for OpenVMS server

    • Local port forwarding

      On system NONVMSHOST, enter the following commands:

      # SSH -L 2001:localhost:23 VMSHOST1

      # TELNET localhost 2001 

      Result: The login prompt is displayed for VMSHOST1.

    • Remote port forwarding

      On system NONVMSHOST, enter the following command:

      # SSH -R 2001:localhost:23 VMSHOST1

      On system VMSHOST1, enter the following command:

      $ TELNET localhost 2001

      Result: The login prompt is displayed for VMSHOST1.