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 connection fails with exit code 1 #7

Open
dadevel opened this issue Aug 30, 2024 · 7 comments
Open

ssh connection fails with exit code 1 #7

dadevel opened this issue Aug 30, 2024 · 7 comments
Assignees

Comments

@dadevel
Copy link

dadevel commented Aug 30, 2024

Hi @coadler, this project is really cool. Unfortunately the SSH feature seems to be broken. The file transfer works fine tough. Not sure what's happening here.

image

@coder-labeler coder-labeler bot added the bug label Aug 30, 2024
@coadler coadler self-assigned this Aug 30, 2024
@coadler
Copy link
Member

coadler commented Aug 30, 2024

Thanks @dadevel.

Does wush ssh echo hi work? I wonder if it's an issue with your shell.

@dadevel
Copy link
Author

dadevel commented Aug 30, 2024

Oh, that was quick :)
That command doesn't produce an error, but the expected output is missing nevertheless.
In fact the provided command is never executed (tested with touch /tmp/test).
I also switched from ZSH to Bash just in case.

image

@dadevel
Copy link
Author

dadevel commented Aug 30, 2024

Interestingly it does work when I run it inside an Alpine container. So it's probably a problem with my host and not with wush.

@dadevel dadevel closed this as completed Aug 30, 2024
@coadler coadler reopened this Aug 31, 2024
@coadler
Copy link
Member

coadler commented Aug 31, 2024

I'll try and get to the bottom of this regardless. I'll try and throw in some more debug logs next week to see what's failing.

@indianets
Copy link
Contributor

I think @dadevel is using an extra true in all his commands. --verbose doesn't takes an argument, so basically you are running ssh true and ssh true echo hi which would correctly result in no output by running true command on remote shell :)

Just remove true and make it wush ssh --verbose and wush ssh --verbose echo hi, both should work ;)

@dadevel
Copy link
Author

dadevel commented Sep 5, 2024

Nope, that's not the cause. The same behavior stays the same without --verbose.

@indianets
Copy link
Contributor

Ok then, my bad! But true supplies to --verbose does make a difference, as the argument is unnecessary and rather treated as an argument for ssh

You can see the output from a working setup.

Screenshot 2024-09-05 at 6 47 59 PM

@matifali matifali removed the bug label Oct 15, 2024
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

4 participants