Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Scriptrunner console writing a bash script to connect to server

Amjad Syed
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 9, 2023

Hello

 

I am newbie to Scriptrunner. I am testing Scriptrunner console to check if i can communicate using bash/shell script to ssh into a linux server and execute command there.

 

Can you please advice if this is possible.

 

 

2 comments

Comment

Log in or Sign up to comment
Peter-Dave Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 9, 2023

I don't think this will be possible in the cloud.

It is possible for on-premise versions of scriptrunner.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 9, 2023

Welcome to the Atlassian Community!

Cloud can't do that, it doesn't allow you to run ssh (This is not a scriptrunner limitation, it's Atlassian Cloud, and it's arguably not a limitation)

You could however write a (very simple) service for the receiving machine that could accept some form of call (like a REST call) and trigger whatever the command is.  Then Scriptrunner could hit that endpoint when you need it.

Like Andrii Maliuta likes this
TAGS
AUG Leaders

Atlassian Community Events