masneyb / gftp

gFTP is a free multithreaded file transfer client for *NIX based machines. 56 language translations available.
http://www.gftp.org
MIT License
116 stars 20 forks source link

How do I accept RSA key fingerprint for SSH #100

Open sjp27 opened 3 years ago

sjp27 commented 3 years ago

The Yes/No buttons do not appear anymore, running on Ubuntu 20.04.

wdlkmpx commented 3 years ago

See https://github.com/masneyb/gftp/issues/72 for workarounds

Commit https://github.com/masneyb/gftp/commit/a6bdbb5053faa4e75639d638f2f21d50fcc7c665 fixed the issue (most likely).

v2.6.0b (beta) includes the change: https://github.com/masneyb/gftp/releases

After almost 100 commits, I think I'll prepare a new beta or alpha release... some gtk UI fixes/tweaks, ongoing effort to add gtk3 support, minor cleanups.

sjp27 commented 3 years ago

If I run the command from a terminal the popup only appears if I prefix with setsid. I tried hacking gftp to prefix this to ssh but this does not work. I am running openSSH 8.2

sjp27 commented 3 years ago

I have a dirty fix for now, change tempstr to "setsid" in gFTP and set SSH Extra Params to "-w ssh -o StrictHostKeyChecking=ask"

wdlkmpx commented 3 years ago

-o StrictHostKeyChecking=ask is certainly required... does it work without -w ssh?

Meanwhile you might want to try this and see what happens. https://github.com/masneyb/gftp/releases/download/2.7.0b/gftp-2.7.0b.tar.xz https://github.com/masneyb/gftp/archive/2.7.0b.tar.gz

I used to test with a local server 'cause I haven't uploaded stuff since last year I guess.

sjp27 commented 3 years ago

setsid allows ssh to run as a separate process it does not replace ssh. I am hoping this will all be sorted with OpenSSH8.4 which supports the SSH_ASKPASS_REQUIRE variable.