# Minimal OpenSSH client config for FiWiControl tests and tooling.
#
# When ssh is run with:  ssh -F /path/to/this/file ...
# the system-wide /etc/ssh/ssh_config is not read, so broken or
# permission-denied snippets under /etc/ssh/ssh_config.d/ (e.g. Fedora's
# 20-systemd-ssh-proxy.conf) cannot abort the client before connecting.
#
# Set FIWI_SSH_CONFIG to this path (pytest does this automatically via
# tests/conftest.py when the file exists). Override with your own file if needed.

Host *
	# Writable path so ssh never touches /root/.ssh/known_hosts when tests run as root
	# (e.g. sandbox/CI) or when that directory is not stat-able.
	UserKnownHostsFile /tmp/fiwicontrol_pytest_known_hosts
	StrictHostKeyChecking accept-new
	# Fail fast instead of prompting (no TTY / no ssh-askpass in pytest).
	BatchMode yes
