scp via shell-integration failed
Bug report
- iTerm2 version: Build 3.5.0beta22
- OS version: macOS 13.6.4
What happened
Uploading files via shell integration was failed.
2024-03-29 12:17:26.035 iTerm2[47469:27167003] Transfer started
2024-03-29 12:17:26.038 iTerm2[47469:27168228] NMSSH: libssh2 (v1.11.0) initialized
2024-03-29 12:17:26.038 iTerm2[47469:27168228] NMSSH: Start (address) resolution
2024-03-29 12:17:26.043 iTerm2[47469:27168222] NMSSH: Socket connection to (address) on port 22 succesful
2024-03-29 12:17:26.119 iTerm2[47469:27168222] NMSSH: Remote host banner is SSH-2.0-OpenSSH_9.4
2024-03-29 12:17:26.119 iTerm2[47469:27168222] NMSSH: The host's fingerprint is (fingerprint)
2024-03-29 12:17:26.119 iTerm2[47469:27168222] NMSSH: No known hosts file /etc/ssh/ssh_known_hosts.
2024-03-29 12:17:26.119 iTerm2[47469:27168222] NMSSH: Check for host (address), port 22 in file /Users/tomop/.ssh/known_hosts
2024-03-29 12:17:26.119 iTerm2[47469:27168222] NMSSH: Match
2024-03-29 12:17:26.119 iTerm2[47469:27168222] NMSSH: Fingerprint refused, aborting connection...
2024-03-29 12:17:26.119 iTerm2[47469:27168222] NMSSH: Disconnected
2024-03-29 12:17:26.120 iTerm2[47469:27167003] Transfer finished. error=Error Domain=com.googlecode.iterm2 Code=-1 "Could not connect." UserInfo={NSLocalizedDescription=Could not connect.}
The fingerprint was matched but refused. It looks like the shouldConnectToHostWithFingerprint
method returns before the internal GCD block finishes.