lux wrote:
Hi,
I routinely login a remote server via a 'gateway' machine. For example,
I need to login to PC B using ssh. But this PC B is behind a
firewall.ssh port on PC A is open.
As a result, I have to login PC A via ssh, then ssh PC B from PC A.
Is there ssh command line option that I can directly ssh to PC B?
Thanks
Y
You could try something like:
ssh [options] user@A "ssh [options] user@B"
You can skip the user@ part if you have the same user name.
ssh -Y PC_A "ssh -Y frank@PC_B"
Mikkel
--
Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!