ssh 拷贝

由 smallrat 在 10-10-2004 14:14 发表:

ssh 拷贝

我用ssh登录实验室的linux服务器,然后用scp拷贝文件,比如:

在服务器/home/biblo/net/下有一个aa.htm文件,我用以下命令:

$scp -p [email protected]:~/net/aa.htm .

输入密码之后, 发现文件被拷贝到/home/biblo/ on the server instead of local(sorry, my Chinese input breakdown suddenly now,I can only type English ),

Can anyone tell me how to deal with this problem??

3ks a lot!!!


由 星煌 在 10-10-2004 18:56 发表:


不太明白你希望的操作,可能跟你有帖子出问题所以表达不清楚有关吧,如果你登录的机器ip并非192.168.0.1,那么scp -p [email protected]:~/net/aa.htm .

这个命令就是把192.168.0.1服务器上的~/net/aa.htm文件copy到当前服务器的工作目录下,如果不对,那就是别的问题


由 eTony 在 10-10-2004 19:24 发表:


scp 不需要ssh登陆的


Seeking Freedom,pure Freedom!

http://211.92.88.40/~tony/

http://etony.blogone.net/


由 Snoopy 在 10-10-2004 22:23 发表:


你想本地的东西cp到对方普通用户的目录下,这个意思 ?


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 txkss 在 10-10-2004 23:15 发表:


用sftp啊它太方便了


由 Snoopy 在 10-11-2004 13:30 发表:


呵呵,确实


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 smallrat 在 10-11-2004 16:54 发表:


其实我想拷贝这个文件到本地目录的。

谁知道正确的命令??

赐教赐教!!

谢谢谢谢!!!


由 星煌 在 10-12-2004 10:22 发表:


那就请楼主把情况说清楚吧:本地机器ip是什么,目的server ip和文件所在位置是什么,有了这两个条件命令就好给出了


由 smallrat 在 10-12-2004 18:49 发表:


好的。

服务器ip为192.168.0.1,本机为服务器下设的子网机器。

目的文件夹:home/biblo/net/,文件为aa.htm。

我想把这个文件拷贝到本地目录下,

但是我用上面这个命令之后发现文件被拷贝到了服务器的/home/biblo目录下。

不知道正确的命令是什么?


由 smallrat 在

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus