Shell Integration/SCP download error with hostnames containing hyphens
- iTerm2 version: 3.0.2
- OS version: 10.11.6
- com.googlecode.iterm2.plist
Detailed steps to reproduce the problem:
- install Shell Integration (with additional utilities)
- ssh into a remote machine
- right click a file name and click "Download with scp from
hostname-with-hyphen"
What happened: Error message "Failed to connect to hostname-with-hyphen:22. Double-check that the host name is correct." shows up.
scp command on a terminal to the same machine with hostname-with-hyphen works fine.
iTerm2-scp to a hostname without any hyphen also works fine.
My current workaround is adding a line export iterm2_hostname=xxx.xxx.xx.xxx in ~/.zshrc.
What should have happened:
iTerm2-scp should work with hostnames containing hyphens, just like scp.