2016-01-31 151 views
0

我必须从我的本地机器复制一个名为thefilethefilethefile.txt的文件到我的远程服务器的根(我必须这样做来证明我自己的服务器)。复制本地文件到远程服务器在ubuntu终端

Jeez,当你需要它的时候,Windows会在哪里拖放。我怎样才能完成这个简单的任务?

在Ubuntu的终端我有提示:

[email protected]:~$ 

我做它:

[email protected]:~$ cp thefilethefilethefile.txt [email protected] 

回车,我得到的是提示再次:[email protected]:~$

然后我登录到[email protected]并且该文件不在根目录中。

我也试过:

scp thefilethefilethefile.txt [email protected] 

无济于事。任何帮助,将不胜感激。

回答

0

您需要使用:在SCP在主机名结束

它的工作原理是这样,如:

SCP thefilethefilethefile.txt [email protected]

相关问题