i have used the following command to copy a directory from one server to another server-
but it ended up with -'no such dir found /home/user_name1/'
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
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
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.