alexellis / k3sup

bootstrap K3s over SSH in < 60s 🚀
https://github.com/sponsors/alexellis
Other
6.33k stars 376 forks source link

Add extra debug log for ssh-agent issues #418

Open Nezteb opened 1 year ago

Nezteb commented 1 year ago

Why do you need this?

Description

I was having issues in https://github.com/alexellis/k3sup/issues/417 specifically with Nushell (nu).

In order to diagnose the issue I cloned k3sup locally and added a error log statement that helped me diagnose the problem, hence this PR.

It turns out the issue was because I had this in my config.nu:

# Bad
$env.SSH_AUTH_SOCK = "/Users/noah/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"

# Good
$env.SSH_AUTH_SOCK = `/Users/noah/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock`

Apparently in Nushell, backticks are the appropriate delimiter for paths that contains spaces in the name.

How Has This Been Tested?

I tested locally with good and bad Nushell SSH_AUTH_SOCK definitions.

Types of changes

Checklist:

derek[bot] commented 1 year ago

Thank you for your contribution. unfortunately, one or more of your commits are missing the required "Signed-off-by:" statement. Signing off is part of the Developer Certificate of Origin (DCO) which is used by this project.

Read the DCO and project contributing guide carefully, and amend your commits using the git CLI. Note that this does not require any cryptography, keys or special steps to be taken.

:bulb: Shall we fix this?

This will only take a few moments.

First, clone your fork and checkout this branch using the git CLI.

Next, set up your real name and email address:

git config --global user.name "Your Full Name" git config --global user.email "you@domain.com"

Finally, run one of these commands to add the "Signed-off-by" line to your commits.

If you only have one commit so far then run: git commit --amend --signoff and then git push --force. If you have multiple commits, watch this video.

Check that the message has been added properly by running "git log".

Nezteb commented 9 months ago

@alexellis Hello! Are you still interested in merging this? If not, no worries at all. 😄