shell integration can't scp: "Authentication Error"
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.4.23
- OS version: 14.4 (23E214)
- Attach com.googlecode.iterm2.plist here (drag-drop from finder into this window)
- Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog. debuglog.txt
- Attach a screen capture video if it would make the reproduction steps clearer.
PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.
Detailed steps to reproduce the problem:
- I added ssh connect configurations within
~/.ssh/config
:
Host test10
User azureuser
HostName XX.XX.XX.XX
IdentityFile ~/.ssh/azure.pem
- When I connected to the instance, with
ssh -v hostname
. I see:
...
debug1: Authentications that can continue: publickey
...
- Installed shell extension in the remote machine
- Added the following two lines before the iterm line in
~/.profile
in the remote machine:
export ITERM_ENABLE_SHELL_INTEGRATION_WITH_TMUX=1
export iterm2_hostname=test10
because they were needed for tmux (however, the issue also happens outside the tmux sessions). 5. Right click > Download with scp on a file in the terminal (a user owned file) What happened: It fails saying the error "Authentication Error" What should have happened: Should have downloaded.
- In the past, I could download to another machine with this same public key
azure.pem
, and its permissions are600
, so I can discard the problem of the public key format being encrypted or unsupported. - I also checked that the permissions of the file to download are alright:
352K -rw-rw-r-- 1 azureuser azureuser points3D.bin
What could it be? Thank you very much!
Edited by Cristian Duguet