Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion geofrontcli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,11 @@ def ssh(args, alias=None):
ssh.error(str(e))
if args.jump_host:
options.extend(['-o', 'ProxyJump=={}'.format(args.jump_host)])
subprocess.call([args.ssh] + options)

if args.exec:
subprocess.call([args.ssh] + options + [args.exec])
else:
subprocess.call([args.ssh] + options)


ssh.add_argument('remote', help='the remote alias to ssh')
Expand Down Expand Up @@ -419,6 +423,11 @@ def go(args):
help='do not open the authentication web page using browser. '
'instead print the url to open'
)
p.add_argument(
'-X', '--exec',
default=None,
help='Command to run'
)
p.add_argument(
'-J', '--jump-host',
default=None,
Expand Down