Skip to content

SSH_OPTS not working #854

Open
Open
@DO1JLR

Description

@DO1JLR

SSH_OPTS not working?
Hi there, I have added the following config to my getssl account config:

SSH_OPTS="-o StrictHostKeyChecking=accept-new"

Unfortunately, the option does not work and ssh still asks me for ssh key confirmation.

To reproduce.

  1. Create getssl account config with options like:
SSH_OPTS="-o StrictHostKeyChecking=accept-new"
RELOAD_CMD="ssh:username@localhost:sudo /bin/systemctl reload nginx.service"
DOMAIN_CHAIN_LOCATION="ssh:username@localhost:/home/username/example.com.crt"
  1. Make sure your .ssh/known_host doesn't contain an entry for localhost
  2. install a certificate
  3. You will be asked to confirm your SSH key fingerprint

Expected behavior
I expected not to be asked to confirm my SSH key fingerprint.

Operating system:

  • OS: Debian GNU/Linux 12 (bookworm)
  • Bash version GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu)
  • getssl V2.49

Additional context
BTW, if I add a file ~/.ssh/config with StrictHostKeyChecking=accept-new as content it works as expected.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions