开发者

SSH Scp - can't specify local path where to copy files from server [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

开发者_运维知识库 Improve this question

i'm trying to download .zip file from bluehost server to my computer. Like this -

scp username@domainname:/pathof/file.zip /home/Public/username/

I found out, when writing local address (where i want to put file) still refers to server address (pressing tab). What am i doing wrong ?


The target location looks wrong. Shouldn't it be:

/home/username/Public


You can use scp to copy from the computer you are on to the one you are ssh connected to. While ssh connected if you have ssh running on the host machine you are on and connected to the remote, from the remote you connect to the machine you are on as if it was remote. scp is not really a utility is it? it a process but one with a single clearly defined start and end so it looks like a utility command.


The thing was .. that I was using SCP when i was SSH connected - in same shell. I thought that SCP is child command of SSH ...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜