You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

Ubuntu Server 24.04环境下SSH连接正常但SCP传输文件时提示connection refused的问题求助

Ubuntu Server 24.04环境下SSH连接正常但SCP传输文件时提示connection refused的问题求助

大家好,我最近刚完成Ubuntu Server 24.04的全新安装,现在在家庭局域网里用笔记本通过SSH连接服务器完全没问题,但当我尝试用SCP把本地文件传到服务器时,一直收到「connection refused lost connection」的错误提示。我把更详细的verbose调试输出贴在下面,有没有大佬能帮忙分析下问题所在,给点修复建议?

我执行的SCP命令:

scp -vvvv /home/username/Downloads/Anaconda3-2024.02-1-Linux-x86_64.sh username@xxx.xxx.xx.xxx:~/stuff/username_storage/installs/

对应的输出信息:

Executing: program /usr/bin/ssh host xxx.xxx.xx.xxx, user username, command scp -v -t ~/stuff/username_storage/installs/
OpenSSH_8.9p1 Ubuntu-3ubuntu0.7, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname xxx.xxx.xx.xxx is address
debug3: expanded...

备注:内容来源于stack exchange,提问作者user3476463

火山引擎 最新活动