HP-UX Secure Shell Getting Started Guide HP-UX 11i v1, HP-UX 11i v2, and HP-UX 11i v3 (5900-3142, June 2013)

Example 6 Connecting to an External Server Using Dynamic Port Forwarding
Enter the following command to connect to an external server using dynamic port forwarding:
# ssh -o "ProxyCommand connect -S proxy-server:<port number> %h %p"
external-server
This establishes a connection to external-server using proxy-server.
Example 7 Data Transfer Using Dynamic Port Forwarding
Enter the following command to transfer data using dynamic port forwarding:
# scp -o "ProxyCommand connect -S proxy-server:<port number> %h %p"
external-server:remotefile localfile
or
# sftp -o "ProxyCommand connect -S proxy-server:<port number> %h %p"
external-server
The system is connected to external-server through proxy-server, and remotefile is copied to
localfile.
52 Configuring HP-UX Secure Shell as a SOCKS Proxy