Ssh Connection through a Jump Host: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * OpenSSH Operations *")
 
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:


* [[OpenSSH_Operations#Client_Operations|OpenSSH Operations]]
* [[OpenSSH_Operations#Client_Operations|OpenSSH Operations]]
*
* [[OpenSSH_Concepts#Jump_Host|OpenSSH Concepts]]
 
=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''> -i <''target-host-private-key''> <''target-host-user''>@<''target-host''>
 
Example:
 
ssh -J ec2-user@1.2.3.4 -i ~/.ssh/playground-private-key ec2-user@10.1.12.150

Latest revision as of 00:09, 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> -i <target-host-private-key> <target-host-user>@<target-host>

Example:

ssh -J ec2-user@1.2.3.4 -i ~/.ssh/playground-private-key ec2-user@10.1.12.150