首页 > 解决方案 > scp 通过终端传输文件到 linux 服务器

问题描述

我已经通过 ssh 通过我的 Mac 上的终端窗口连接到 linux 服务器,现在我正在尝试通过 scp 传输文件,但出现错误:

[egb@csl3 ~]$ scp /Users/home/Desktop/part1.c egb@csl3.cs.tech.ac.il:~egb/mtm/ex0/part1

The authenticity of host 'csl3.cs.tech.ac.il (127.0.0.1)' can't be established.

ECDSA key fingerprint is
ECDSA key fingerprint is 
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'csl3.cs.tech.ac.il' (ECDSA) to the list of known hosts.
egb@csl3.cs.tech.ac.il's password: 
/Users/home/Desktop/part1.c: No such file or directory

我做错了什么?正如我在许多其他文章中所读到的那样,我通过在终端窗口中拖动它来获得要传输的文件的位置

标签: macossshterminalfile-transferscp

解决方案


推荐阅读