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?

link|improve this question

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

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

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

3 Answers

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.

link|improve this answer
feedback

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.

link|improve this answer
feedback

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

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

Your Answer

 
or
required, but never shown

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