我正在尝试将一些文件(双向) SCP 到我的 raspberrypi。但是,仅在我的 Ubuntu 18.04 桌面上,我无法通过 SCP 进入它。两种方式,我都可以通过密码和无密码登录方法 SSH 进入对方。然而,在 SCP 上,在它要求我输入密码(无密码)后,它只是挂起并且不会传输文件。运行scp -vvv ...
会产生以下截断日志
debug3: Ignored env XDG_SESSION_TYPE
debug1: Sending env LC_TIME = en_SG.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env SSH_AGENT_PID
debug3: Ignored env GTK_MODULES
debug3: Ignored env XDG_CURRENT_DESKTOP
debug3: Ignored env SSH_AUTH_SOCK
debug3: Ignored env PATH
debug3: Ignored env TERM
debug3: Ignored env HOME
debug3: Ignored env XDG_SEAT
debug3: Ignored env XMODIFIERS
debug3: Ignored env XDG_RUNTIME_DIR
debug1: Sending env LC_ADDRESS = en_SG.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env GPG_AGENT_INFO
debug3: Ignored env USER
debug3: Ignored env QT_ACCESSIBILITY
debug3: Ignored env OLDPWD
debug3: Ignored env P9K_TTY
debug3: Ignored env ZSH
debug3: Ignored env PAGER
debug3: Ignored env LESS
debug3: Ignored env LSCOLORS
debug3: Ignored env LS_COLORS
debug3: Ignored env P9K_SSH
debug3: Ignored env CONDA_EXE
debug3: Ignored env _CE_M
debug3: Ignored env _CE_CONDA
debug3: Ignored env CONDA_PYTHON_EXE
debug3: Ignored env CONDA_SHLVL
debug3: Ignored env CONDA_PREFIX
debug3: Ignored env CONDA_DEFAULT_ENV
debug3: Ignored env CONDA_PROMPT_MODIFIER
debug3: Ignored env LD_LIBRARY_PATH
debug3: Ignored env GEM_HOME
debug3: Ignored env _
debug1: Sending command: scp -v -r -f ~/Desktop/saves
debug2: channel 0: request exec confirm 1
debug3: send packet: type 98
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
在另一台电脑 Macbook Pro 上,我可以正常使用 SCP。这让我认为这是我的台式机特有的问题,但我搞不清楚是什么问题。任何建议都将不胜感激。
编辑:完整的命令运行是scp -vvv pi@driftcar:~/Desktop/recording.jpg ~/Desktop/
。driftcar 是我的 ssh 别名,我也尝试过直接输入 IP 地址,但无济于事。