I has a machine named A(doesn't have private IP) in my LAN, and I want to connect the machine A via SSH, but my host is not in the LAN. I have a machine B(it has private IP), I want to set the machine B as the proxy machine so that I can connect the machine A from my localhost via the machine B(proxy machine) anywhere.
How can I make it by using SSH?