- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- using sftp
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
Forums
Discussions
Discussions
Discussions
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
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
09-28-2005 04:17 AM
09-28-2005 04:17 AM
I need to transfer some files using sftp protocol in automated way, can anybody share a little script to do that?
I´ll appreciate your help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 04:41 AM
09-28-2005 04:41 AM
Solutiontake these links:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=690015
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=878554
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=694462
Regards,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 05:23 AM
09-28-2005 05:23 AM
Re: using sftp
You can scp instead of sftp. scp copies files between hosts on a network. It uses ssh for data transfer, and uses the same authentication and provides the same security as ssh. Unlike rcp, scp will ask for passwords or passphrases if they are needed for authentication.
Usage:
scp file username@hostname:file
scp username@hostname:file file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 07:22 AM
09-28-2005 07:22 AM
Re: using sftp
best way to implement this is the follwoing.
server a:
say you are user pusher
1) ssh-keygen -t rsa
# accept all defaults fro the prompts that follow
2) cat .ssh/id_rsa.pub | ssh serverb "( cat - >> .ssh/authorized_keys2 )"
enter yourpassword for the id on serverb
3) ssh serverb "uname -a"
your shoudl see the remote server name without entering a password.
viola:
4) scp ~/*.bkp serverb:/mybackupdir/.
or
4) rsync --rsh=ssh ~/*.bkp serverb:/mybackupdir/
peace, and enjoy the power of ssh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 11:41 AM
09-29-2005 11:41 AM
Re: using sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 11:41 AM
09-29-2005 11:41 AM