This content has been marked as final. Show 11 replies
Sorry the scp syntax you are using does not make sense.
Does the /home/user_name1/ directory exist?
Does the user you are using have access privileges?
The syntax for copying a directory is:
scp -r username@servername:remote_source_dir local_target_dir
or to copy from one server to another using a different server:
scp -r firstname.lastname@example.org:testdir email@example.com:
Edited by: Dude on Sep 13, 2012 4:19 AM
i have used the below commnad,but it throws the following error-
error: No such file or directory, file: /dirname@
scp -r targetusername@ target ipaddr: /sourcedir /targetdir
In your first post you have no spaces, in the second post you have multiple spaces and an error messages that does not belong there. What is it going to be?
Please see the forum FAQ about posting code, or try some other way to explain your problem. Or even better, post the exact command including the error message as shown on your screen and explain what you are trying to accomplish.
Sorry for confusion,
This is the command i have issued without giving any spaces,still am getting the issues-
scp -r targetusername@targetipaddr:/home/sourcedir /home/targetdir/
Host key for the host "xxx.xxx.xxxx" not found from database
That's a completly different problem now.
ssh will normally prompt you to save the fingerprint, which is created the frist time you establish the session. Did you say "no" when it prompted you?
it didn't prompt to save the finger prints,do we have any other option to do this?
What happens if you try to login instead of using scp, e.g. ssh username@servername
am using putty to connect remote desktop server not ssh
PuTTY is a ssh client, however, that is irrelevant. scp is provided by ssh.
Where do you enter: scp -r targetusername@targetipaddr:/home/sourcedir /home/targetdir/
Instead enter: ssh targetusername@targetipaddr
@ user 446,
PuTTy is a terminal emulator application, a program.
You can configure it to make a connection via telnet, SSH, rlogin or raw TCP as well as have it be a basic serial console client.
Telnet and SSH are protocols used to make a connection.
Your destination system will permit one or the other or both or neither, depending on how that destination system is configured.
Glance back at the responses thus far and gather the information that answers those questions that have been asked of you.
Dude is too fast, as usual
Edited by: rukbat on Sep 14, 2012 2:33 PM
Thread moved from the Oracle Linux forum,
to the Generic Linux forum.
No evidence that Oracle Linux is installed and the discussion thus far is too broad to limit it to a single OS distribution branch.