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

On AL2023, q doctor complains about ssh integeation #302

Open
3 tasks done
rstrahan opened this issue Dec 21, 2024 · 4 comments
Open
3 tasks done

On AL2023, q doctor complains about ssh integeation #302

rstrahan opened this issue Dec 21, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@rstrahan
Copy link

Checks

Operating system

Linux 6.1.112-124.190.amzn2023.x86_64 - Amazon Linux 2023.6.20241212

Expected behaviour

I did install q commandline for remote AL2023 per docs.
I sucessfully configured it for PRO licence and logged in,
I did add the required lines to /etc/ssh/sshd_config
I did restart sshd
I did disconnect and log in again
I expect q doctor to report that all is well.

I tried to run q restart - it says "error: Please restart Amazon Q from your host machine" but q is not installed on my local machine (bot supported on Windows)

Actual behaviour

q commandline doesn't work and q doctor reports this error.

Steps to reproduce

No response

Environment

[q-details]
version = "1.5.1"
hash = "43f92e418e96c7beaa3e881f299241c15ba65900"
date = "2024-12-13T00:51:07.605173Z (9d ago)"
variant = "minimal"

[system-info]
chip = "Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz"
total-cores = 4
memory = "15.61 GB"

[system-info.os.linux]
kernel_version = "6.1.112-124.190.amzn2023.x86_64"
id = "amzn"
name = "Amazon Linux"
pretty_name = "Amazon Linux 2023.6.20241212"
version_id = "2023"
version = "2023"

[environment]
cwd = "/home/USER"
cli-path = "/home/USER"
os = "Linux"
shell-path = "/usr/bin/bash"
shell-version = "5.2.15"
install-method = "unknown"
in-ssh = true

[env-vars]
PATH = "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/USER/miniconda3/bin:/home/USER/miniconda3/condabin:/home/USER/.console-ninja/.bin:/home/USER/.nvm/versions/node/v18.20.4/bin:/home/USER/.local/bin:/home/USER/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/USER/.local/bin"
Q_SET_PARENT_CHECK = "1"
SHELL = "/bin/bash"
TERM = "xterm-256color"
XDG_SESSION_TYPE = "tty"
@grant0417
Copy link
Member

Make sure you have installed the ssh integrations on the host machine, you need to run q integrations install ssh on you macOS machine.

@rstrahan
Copy link
Author

rstrahan commented Jan 6, 2025 via email

@grant0417
Copy link
Member

I see, this error is a false positive then and you should be able to ignore it given everything else is working. If you run q doctor --verbose are there any other errors?

@rstrahan
Copy link
Author

rstrahan commented Jan 6, 2025

No - this is the only reported error.

$ q doctor --verbose
bash: __bp_last_argument_prev_command: parameter null or not set

✘ sshd config: Could not read sshd_config

  The /etc/ssh/sshd_config file needs to have the following line:
    AcceptEnv Q_SET_PARENT
    AllowStreamLocalForwarding yes
  
  If your sshd_config is already configured correctly then:
    1. Restart sshd, if using systemd: sudo systemctl restart sshd
    2. Disconnect from the remote host
    3. Run q integrations install ssh on the local machine
    4. Reconnect to the remote host and run q doctor again
  
  See https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-autocomplete-ssh.html for more info


✘ Doctor found errors. Please fix them and try again.

If you are not sure how to fix it, please open an issue with q issue to let us know!

Looks like you are right, that it's a false positive, and I can ignore it.. Trying q chat, q translate etc.. seems all is well.

This of course is not obvious, so hopefully you'll keep the issue open to fix it.. But in the meantime I'm unblocked - thanks so much!

@grant0417 grant0417 changed the title On AL2023, q doctor claims: The /etc/ssh/sshd_config file needs to have the following line: On AL2023, q doctor complains about ssh integeation Jan 7, 2025
@grant0417 grant0417 added the bug Something isn't working label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants