macos - 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
我做错了什么?正如我在许多其他文章中所读到的那样,我通过在终端窗口中拖动它来获得要传输的文件的位置
解决方案
推荐阅读
- python - Numpy.sum() nD 数组 (2,2,2...n) 到形状 (2,) 的一维数组
- c# - 如何从 C# 中的堆栈跟踪中删除省略号?
- java - 如果方向将以编程方式在 LandScape 中更改,则 OverridePendingTransition 不起作用
- c++ - 接受重复的类限定符。为什么?
- git - 编写 Azure Devops / TFS API 脚本时 - 有没有办法在不退出的情况下处理“Get Repo 不存在”错误响应?
- python - Jupyterhub - 错误:asyncio:从未检索到任务异常
- android - Android - BottomSheetDialog 在软件 NavigationBar 下
- javascript - 带有 Typescript 的 Vue 插件 - 无法读取 null 的属性“_init”
- powerbi - Power BI如何根据列是否包含来自其他列的字符串求和
- javascript - 我可以将图像从 img 标签上传到 Firebase 存储吗