Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I missed typed by scp command - didn't give target remote directory.

scp file root@remote-machine

It didn't say any errors and I don't know whether file is transferred or not . what happened here?

share|improve this question

migrated from stackoverflow.com Jun 17 '10 at 21:56

This question came from our site for professional and enthusiast programmers.

    
ls is your friend.. –  ThiefMaster Jun 17 '10 at 6:47
add comment

3 Answers 3

up vote 3 down vote accepted

There was no transfer to the remote host. There should be a local copy called "root@remote-machine" in your current directory.

share|improve this answer
add comment

You didn't include a : and then a filepath on the remote server.

The filepath can be blank (i.e. the default directory), but missing out the colon means it is treated as a local file path and not a remote one.

share|improve this answer
add comment

It has not been copied to remote host, you've copied the file to file named "root@remote-machine". That's all.

share|improve this answer
    
Thanks,but seems like the file created in local machine called "root@remote-machine". –  lakshmipathi Jun 17 '10 at 6:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.