Ssh Connection through a Jump Host: Difference between revisions
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
ssh -J <''jump-host-user''>@<''jump-host''> <''target-host-user''>@<''target-host''> | ssh -J <''jump-host-user''>@<''jump-host''> <''target-host-user''>@<''target-host''> | ||
Example: | |||
ssh -J ec2-user@1.2.3.4 ec2-user@10.1.12.150 |
Revision as of 00:06, 28 December 2019
Internal
Overview
The following command allows connecting to a target host via a jump host. This connection pattern is widely used with bastion servers, where the bastion server also plays the role of a jump host.
ssh -J <jump-host-user>@<jump-host> <target-host-user>@<target-host>
Example:
ssh -J ec2-user@1.2.3.4 ec2-user@10.1.12.150