aspose file tools*
The moose likes Linux / UNIX and the fly likes Not able to copy dir from other server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Not able to copy dir from other server" Watch "Not able to copy dir from other server" New topic
Author

Not able to copy dir from other server

James Tharakan
Ranch Hand

Joined: Aug 29, 2008
Posts: 580

Hi,
I am trying to copy a dir and its contents using SCP command


but i am getting the following response:
Could not chdir to home directory /home/myName/: No such directory or file
could not create directory '/home/myName/.ssh'


Any suggestion?

SCJP 6
Why to worry about things in which we dont have control, Why to worry about things in which we have control ! !
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16303
    
  21

SSH and SCP require a place to store the SSH security keys used by the account under which the SCP is occurring. Normally, that's under $HOME/.ssh. You can probably override that with an scp command line option.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to copy dir from other server