1753835 Members
8286 Online
108806 Solutions
New Discussion юеВ

scp command syntax

 
Elif Gius
Valued Contributor

scp command syntax

hi all,

I'm a little bit confused. I know ssh and scp, but at the moment I have no clue what's the problem with the syntax:

/usr/local/osshclnt/oscp -o BindAddress=VirtIP -i $HOME/.ssh/id_dsa_key TEST_file.xml user@remoteserver:test/output/

But then I get the error: scp: test/output//TEST_file.xml: Is a directory

Where is the syntax error?! I can't see it?!?!

Thnx
2 REPLIES 2
Michal Kapalka (mikap)
Honored Contributor

Re: scp command syntax

hi,

use absolute path :

/usr/local/osshclnt/oscp -o BindAddress=VirtIP -i $HOME/.ssh/id_dsa_key /ABST_PATH/TEST_file.xml user@remoteserver:/ABS_PATH/test/output/. ( the dot is also important )

mikap
Elif Gius
Valued Contributor

Re: scp command syntax

Thnx ...I fixed the error.
It would be the best to wear my glasses ;-)