core.remote:bastion_host #5526
Unanswered
komalphadatare
asked this question in
Q&A
Replies: 1 comment 6 replies
-
And so based on the error message, what's the SSH key type you're using? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Jump server: Public IP
Target VM: Private IP
Using same ssh key, we want to login to target env via jump server.
To meet this requirement, we are using core.remote action and configured as below.
cmd: hostname
hosts:
baston_host:
username: ubuntu
password: Empty
private_key = <private_key file path>/
NOTE: private_key file is in stackstom server
We are encountering error as below
Unable to connect to any one of the hosts: [u'192.168.10.207'].
connect_errors={
"192.168.10.207": {
"failed": true,
"traceback": "Traceback (most recent call last):
File \"/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/runners/parallel_ssh.py\", line 258, in _connect
client.connect()
File \"/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/runners/paramiko_ssh.py\", line 135, in connect
self.bastion_client = self._connect(host=self.bastion_host)
File \"/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/runners/paramiko_ssh.py\", line 689, in _connect
passphrase=self.passphrase)
File \"/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/runners/paramiko_ssh.py\", line 600, in _get_pkey_object
raise paramiko.ssh_exception.SSHException(msg)
SSHException: Invalid or unsupported key type
",
"timeout": false,
"succeeded": false,
"stdout": "",
"stderr": "",
"error": "Connection error. Invalid or unsupported key type",
"return_code": 255
}
}"
Beta Was this translation helpful? Give feedback.
All reactions