Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CD pipeline, deploy task fails with - ssh: Could not resolve hostname nhaaaaaw.. #52

Open
gasgithub opened this issue Feb 16, 2023 · 0 comments

Comments

@gasgithub
Copy link

While running CD pipeline in the deploy task I can see that task has issues with decoding ssh keys (why are they decoded?), which sets strange hostname:
Lines 11 and 28 (https://github.com/open-toolchain/commons/blob/master/scripts/deployment_strategies/basic/vsi/utility.sh)

+++ base64 -d
base64: invalid input
+++ chmod 600 bastion.key
+++ ProxyCommand='ssh  -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i bastion.key -W %h:%p root@NhAAAAAwE

....

base64: invalid input
+++ VsiCommand='-o LogLevel=ERROR -i vsi.key -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null '

....

Creating Build Directory [/home/root/ec2dfb2f-cc48-4121-b42f-b61d3953dea4]
++ ssh -o LogLevel=ERROR -i vsi.key -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o 'ProxyCommand=ssh -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i bastion.key -W %h:%p root@NhAAAAA....' [[email protected]](mailto:[email protected]) 'mkdir -p /home/root/ec2dfb2f-cc48-4121-b42f-b61d3953dea4'
ssh: Could not resolve hostname nhaaaaaweaaqaaaye....: Name or service not known
kex_exchange_identification: Connection closed by remote host

Same key file that is pasted as bastion-host-ssh-keys and pool-ssh-keys properties, works fine while using ssh from workstation command line and connecting to bastion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant