Re: ssh to a remote server via gateway server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux