We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 184b017 commit 731d7edCopy full SHA for 731d7ed
linodecli/plugins/ssh.py
@@ -50,6 +50,11 @@ def call(args, context): # pylint: disable=too-many-branches
50
action="store_true",
51
help="If given, uses the Linode's SLAAC address for SSH.",
52
)
53
+ parser.add_argument(
54
+ "-d",
55
+ action="store_true",
56
+ help="If given, uses the Lindoe's domain name for SSH",
57
+ )
58
59
parsed, args = parser.parse_known_args(args)
60
@@ -147,4 +152,9 @@ def parse_target_address(
147
152
if ip.startswith("192.168"):
148
153
continue
149
154
155
+ if getattr(
156
+ parsed, "d"
157
+ ):
158
+ ip = ip.replace(".", "-") + ".ip.linodeusercontent.com"
159
+
150
160
return ip
0 commit comments