- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Copying files by using SCP in a Script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 06:39 PM
тАО10-12-2006 06:39 PM
I want to copy files from one of my server to other by using scp.
I am using a script which will generate a tar file and I want it to paste it automatically to my other server using SCP.
But how can I can make this automation in a Script.
I dont want it to ask for the password while copying to the server.
Can anybody guide me...
Thanks & Regards
Suseendran. A
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 07:22 PM
тАО10-12-2006 07:22 PM
Solutionthis short tutorial gives some ideas. I adapt it for a sftp transfer between hpux sh Shell and linux and I come back for publish the result.
http://blogs.translucentcode.org/mick/archives/000230.html
Regards
Joel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 07:35 PM
тАО10-12-2006 07:35 PM
Re: Copying files by using SCP in a Script
SCP uses ssh for data transfer, and uses the same authentication and provides the same security as ssh. Hence, you should configure ssh such that your remote connection are establish without it asking for "the password". if this works, the scp command in the script will work too!
kind reagrds
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 07:54 PM
тАО10-12-2006 07:54 PM
Re: Copying files by using SCP in a Script
Joel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 08:22 PM
тАО10-12-2006 08:22 PM
Re: Copying files by using SCP in a Script
You have to setup dsa id on that server by using sshkeygen command , and then it will not ask for password either for ssh or scp.
Once it has been done the task is easy , write a script to generate the source file and scp it over to your target server.
let me know if you need more info,
Cheers,
Raj.