https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42517

--- Comment #9 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 202094
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202094&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

Signed-off-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to