Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 ssh2 将副本从 server1 发送到 server2。两者都在使用 ubuntu,我正在尝试使用 scp 命令发送它:
scp test.txt userName@server2_direction:/folder_destination
但我收到一个错误:
test.txt: No such file or directory
我尝试输入完整的 url:/users/asd/my_user/folder/test.txt,但它也不起作用。
有什么提示吗?
您在源计算机上的错误目录中。检查当前目录中是否有test.txt。
test.txt
$ ls -l test.txt