You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org
Template:ProxySSH: Difference between revisions
imported>Krinkle No edit summary |
imported>Krinkle No edit summary |
||
Line 3: | Line 3: | ||
|fqdn={{{fqdn|{{lcfirst:{{PAGENAME}}}}.{{{location|<noinclude>eqiad</noinclude>}}}.wmnet}}} | |fqdn={{{fqdn|{{lcfirst:{{PAGENAME}}}}.{{{location|<noinclude>eqiad</noinclude>}}}.wmnet}}} | ||
|location={{{location|<noinclude>eqiad</noinclude>}}} | |location={{{location|<noinclude>eqiad</noinclude>}}} | ||
|bastion | |bastion=bast1001.wikimedia.org | ||
}}<noinclude><div class="template-documentation"> | |||
<templatedata> | |||
{ | |||
"params": { | |||
}}<noinclude> | "fqdn": { | ||
"label": "FQDN", | |||
"description": "The fully qualified domain name for this host.", | |||
"type": "string", | |||
"default": "[node].[location].wmnet" | |||
}, | |||
"location": { | |||
"label": "Cluster", | |||
"description": "Cluster name (e.g. \"eqiad\")", | |||
"type": "string", | |||
"required": true, | |||
"suggested": true | |||
}, | |||
"node": { | |||
"label": "Hostname", | |||
"description": "Short hostname", | |||
"default": "Page title", | |||
"type": "string" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"node", | |||
"location", | |||
"fqdn" | |||
], | |||
"format": "inline", | |||
"description": "Connectivity information for SSH." | |||
} | |||
</templatedata> | |||
== Usage == | |||
<pre>{{ProxySSH|location=eqiad}}</pre> | |||
</div> | |||
</noinclude> | </noinclude> |
Revision as of 00:50, 23 November 2015
Connect to proxySSH over ssh by proxying through a bastion (e.g. bast1001.wikimedia.org
). As with other hosts, ensure you have ProxyJump
configured in .ssh/config
(see Production shell access). Then connect as follows:
user@laptop:~$ ssh proxySSH.eqiad.wmnet
<templatedata> { "params": { "fqdn": { "label": "FQDN", "description": "The fully qualified domain name for this host.", "type": "string", "default": "[node].[location].wmnet" }, "location": { "label": "Cluster", "description": "Cluster name (e.g. \"eqiad\")", "type": "string", "required": true, "suggested": true }, "node": { "label": "Hostname", "description": "Short hostname", "default": "Page title", "type": "string" } }, "paramOrder": [ "node", "location", "fqdn" ], "format": "inline", "description": "Connectivity information for SSH." } </templatedata>
Usage
{{ProxySSH|location=eqiad}}