Pergunta

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 ?

Foi útil?

Solução

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.

Outras dicas

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

/home/username/Public

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 ...

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top