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

From Wikitech-static
Jump to navigation Jump to search
imported>Krinkle
No edit summary
imported>Krinkle
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ProxySSH/core
{{ProxySSH/core
|short={{lcfirst:{{PAGENAME}}}}
|short={{lcfirst:{{{short|{{PAGENAME}}}}}}}
|fqdn={{{fqdn|{{lcfirst:{{PAGENAME}}}}.{{{location|<noinclude>eqiad</noinclude>}}}.wmnet}}}
|fqdn={{{fqdn|{{lcfirst:{{{short|{{PAGENAME}}}}}}}.{{{location|<noinclude>eqiad</noinclude>}}}.wmnet}}}
|location={{{location|<noinclude>eqiad</noinclude>}}}
|location={{{location|<noinclude>eqiad</noinclude>}}}
|bastion={{#switch: {{{location|<noinclude>eqiad</noinclude>}}}
|bastion=bast1003.wikimedia.org
|eqiad
}}<noinclude><div class="template-documentation">
|codfw
<templatedata>
|#default=bast1001.wikimedia.org
{
}}
"params": {
}}<noinclude>
"fqdn": {
;node: Defaults to <code><nowiki>{{lcfirst:{{PAGENAME}}}}</nowiki></code>
"label": "FQDN",
;location: Which [[cluster]] this node resides in (to determine which [[bastion]] should be used).
"description": "The fully qualified domain name for this host.",
;fqdn: The fully qualified domain name for this node. Defaults to <code><nowiki>{{PAGENAME}}.{{{location}}}.wmnet</nowiki></code>.
"type": "string",
"default": "[shortnode].[location].wmnet"
},
"location": {
"label": "Cluster",
"description": "Cluster name (e.g. \"eqiad\")",
"type": "string",
"required": true,
"suggested": true
},
"short": {
"label": "Short",
"description": "Override short node name, defaults to pagename.",
"type": "string",
"default": "Current pagename."
}
},
"paramOrder": [
"short",
"location",
"fqdn"
],
"format": "inline",
"description": "Connectivity information for SSH."
}
</templatedata>
== Usage ==
<pre>{{ProxySSH|location=eqiad}}</pre>
 
</div>
</noinclude>
</noinclude>

Latest revision as of 03:23, 22 December 2021

Connect to proxySSH over ssh by proxying through a bastion (e.g. bast1003.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": "[shortnode].[location].wmnet" }, "location": { "label": "Cluster", "description": "Cluster name (e.g. \"eqiad\")", "type": "string", "required": true, "suggested": true }, "short": { "label": "Short", "description": "Override short node name, defaults to pagename.", "type": "string", "default": "Current pagename." } }, "paramOrder": [ "short", "location", "fqdn" ], "format": "inline", "description": "Connectivity information for SSH." } </templatedata>

Usage

{{ProxySSH|location=eqiad}}