I have an ssh key that I want to use to ssh onto a dev server from bamboo's server. I am able to ssh onto the dev server from bamboo's server if I get into the bamboo terminal using remote desktop (with ssh key copied over), but it fails if I try to ssh from within the "ssh task". I tried copying over the fingerprint for verification too but it says
simple 05-Sep-2019 11:42:52 Connecting to on port: 22
error 05-Sep-2019 11:42:53 Failed to connect to host
error 05-Sep-2019 11:42:53 java.net.ConnectException: Connection refused: connect
I have checked that port 22 is open when outgoing, and I am able to ping the dev server from within a bamboo task, so whats going on here? Why can't I connect ssh from within a bamboo task?
(full stack trace here https://stackoverflow.com/questions/57810205/reasons-for-ssh-task-to-fail-to-connect-in-atlassian-bamboo)