aws / aws/amazon-q-developer-cli

Not able to get "q doctor" to work in EC2.

Open
#2,395 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
2k
Forks
439
PR merge metrics
No merged PRs in 30d

Description

### Checks

- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again

### Operating system

Linux 6.12.35-55.103.amzn2023.x86_64 - Amazon Linux 2023.8.20250721

### Expected behaviour

I added the following two lines to /etc/ssh/sshd_config in the EC2:
AcceptEnv Q_SET_PARENT
AllowStreamLocalForwarding yes
In spite of this "q doctor" does not work.

### Actual behaviour

The following message is returned when I run "q doctor":

✘ 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!

### Steps to reproduce

_No response_

### Environment

```yaml

[q-details]
version = "1.12.5"
hash = "09124c0c588530efdbde310b5110c8603c42eae3"
date = "2025-07-14T19:30:09.359298Z (11d ago)"
variant = "minimal"

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

[system-info.os.linux]
kernel_version = "6.12.35-55.103.amzn2023.x86_64"
id = "amzn"
name = "Amazon Linux"
pretty_name = "Amazon Linux 2023.8.20250721"
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/USER/anaconda3/bin:/home/USER/anaconda3/condabin:/home/USER/.local/bin:/home/USER/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/USER/.local/bin"
QTERM_SESSION_ID = "dc26a9b411e64ca0bf6158fa5e6b0e22"
Q_PARENT = "/tmp/q-parent-557aefe57c494437ae7f62e325f2b6c5.socket"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.12.5"
SHELL = "/bin/bash"
TERM = "xterm-256color"
XDG_SESSION_TYPE = "tty"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.