Using firewalls
If available, remote clients can use a Virtual Private Network (VPN) or a Secure Shell (SSH) tunnel to access services on the inside trusted network. See the Support Knowledgebase article "Connecting an ssh client to Perforce through a firewall".