View Single Post
  #1 (permalink)  
Old 30-11-2009, 06:00 PM
asim.mcp asim.mcp is offline
Senior Member
User
 
Join Date: Jul 2006
Posts: 146
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 4
asim.mcp is on a distinguished road
Default remote login and copy files over ssh

Hi,

One of my linux machine create somefiles over web. I want a script to copy the same file on remote computer using ssh and scp.

when i run
PHP Code:

prompt
ssh login@server1 cd /path/to/dir/ ; scp filename login@server2:/root/backupdir
nothing happen. Any help please????


Regards

Last edited by asim.mcp; 30-11-2009 at 06:15 PM.
Reply With Quote