- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Secure FTP thru batch job
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
05-02-2004 06:56 PM
05-02-2004 06:56 PM
Secure FTP thru batch job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 07:03 PM
05-02-2004 07:03 PM
Re: Secure FTP thru batch job
First:
Exchange public keys.
See attached doc
works for any user
Then batch jobs can do scp sftp and ssh secure as heck.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 07:45 PM
05-02-2004 07:45 PM
Re: Secure FTP thru batch job
For exemple if you want set soruce and destianztion directory and you want to erase old file and "rotate" it before upload you can put in yur script file:
lcd /source
cd /destination
rm old.file
rename new.file old.file
put -P new.file
quit
and next you have to call sftp like:
sftp -b script.txt your_server
Be sure to exchange ssh keys as Steven Protter explained before run sftp via crontab.
I Hope this help you.
RGDS
Mauro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 08:39 PM
05-02-2004 08:39 PM
Re: Secure FTP thru batch job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 12:44 AM
05-03-2004 12:44 AM
Re: Secure FTP thru batch job
http://hpux.ee.ualberta.ca/hppd/hpux/Tcl/expect-5.41/
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 01:16 AM
05-03-2004 01:16 AM
Re: Secure FTP thru batch job
User can be set using this notation:
sftp -b batch.file user@destination.host
RGDS
Mauro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2004 12:08 AM
05-07-2004 12:08 AM
Re: Secure FTP thru batch job
Use scp and add your public key in the the user@server:~/.ssh/authorized_keys file of the user.
This way you can send files without adding a password in your script.
Greetings,
Wim