ssh ProxyCommand. Replace distant_hostname by the hostname of the distant machine to connect, ssh_server by the server accessible from your local machine and distant_machine by the machine you want to connect through ssh_server.