Skip to content

Fix to quote the path in SSH config #1894

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix to quote the path in SSH config #1894

wants to merge 1 commit into from

Conversation

echinus
Copy link

@echinus echinus commented May 19, 2025

Running on MacOS I occasionally get the below (paths replaced with /path/to).

zsh:1: no such file or directory: /path/to/Amazon
Warning: remote port forwarding failed for listen path /tmp/q-parent-[alphanumeric id].socket

The problem looks like the generation of ~/Library/Application Support/amazon-q/ssh_inner since it has this:

  LocalCommand /path/to/Amazon Q.app/Contents/MacOS/q _ ssh-local-command '%r@%n' '[alpha id]' 1>&2

It needs quotes around the first arg in LocalCommand. This is a generated file from crates/q_cli/src/cli/internal/generate_ssh.rs.

This error has been on and off for me, and the file hasn’t had recent changes, so it seems unlikely to be a straight bug as people would have seen and complained about it by now. Any thoughts? Here's a PR in case it's useful.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…tory" error followed by "Warning: remote port forwarding failed for listen path /tmp/q-parent-[alphanumeric id].socket"
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

Successfully merging this pull request may close these issues.

1 participant