https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42517 --- Comment #4 from Kyle M Hall (khall) <kyle@bywatersolutions.com> --- Created attachment 198536 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198536&action=edit Bug 42517: Allow option to set StrictHostKeyChecking=accept-new for SFTP This version of the patch sets the option at the file transport level for maximum flexibility and self-service ability. 1) Run updatedatabase.pl 2) Restart all the things! 3) Install and start an SSH server, give the kohadev-koha user a password, allow password auth, and clear any cached host key: apt-get update && apt-get install -y openssh-server mkdir -p /run/sshd && /usr/sbin/sshd echo "kohadev-koha:koha" | chpasswd sed -i 's/^#*PasswordAuthentication.*/PasswordAuthentication yes/' /etc/ssh/sshd_config pkill -HUP sshd su - kohadev-koha -c 'rm -f ~/.ssh/known_hosts' 4) In the staff client create a new file transport with Transport: SFTP Host: localhost Port: 22 Strict host key checking: No (always accept the host key automatically) Authentication mode: Password-based Username: kohadev-koha Password: koha 5) Wipe known_hosts again, chnage strict host key checking to yes 6) rm -f ~/.ssh/known_hosts 7) Connection test fails with "Host key verification failed"! 8) Set transport to accept-new 9) Connection test passes! 10) Edit the transport again, switch back to "Yes" 11) Connection test still passes -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.