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

Ssh portal returning 0 for failed commands #162

Closed
bomoko opened this issue Jan 10, 2023 · 0 comments · Fixed by #163 or uselagoon/lagoon-charts#544
Closed

Ssh portal returning 0 for failed commands #162

bomoko opened this issue Jan 10, 2023 · 0 comments · Fixed by #163 or uselagoon/lagoon-charts#544

Comments

@bomoko
Copy link

bomoko commented Jan 10, 2023

When running commands via ssh calls to the ssh-portal, we're experiencing issues with the return code coming back as zero where we would expect non-zero codes.

Calling the ssh portal with a clearly spurious command, like the one that follows, returns 0 via the ssh-portal, while the lagoon-core ssh service returns 127:

ssh -v -p XXXX project-username@ssh.portal.goes.here service=cli 'IDoNotExist'

This is being observed in ssh portal version 0.27.1

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