- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- automated 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
08-17-2008 11:02 PM
08-17-2008 11:02 PM
automated sftp
We use a ftp script as given below to automate some file transfer from a unix server to a windows server;
ftp -v -n <
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2008 11:12 PM
08-17-2008 11:12 PM
Re: automated sftp
Its almost exactly the same
sftp user@hostname >>EOF
password
cd
put file
bye
EOF
You might also try:
sftp -b batchfile user@host
Or set up password free public key exhange and simply use scp to do the job without a password.
http://www.hpux.ws/?p=10
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
08-17-2008 11:40 PM
08-17-2008 11:40 PM
Re: automated sftp
Thanks for the quick response.
But the script is not working. When I execute the script it is prompting me to enter the password. If I enter password, rest things are working fine.
Are you sure that it is working for you at your place ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2008 11:45 PM
08-17-2008 11:45 PM
Re: automated sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2008 11:47 AM
08-18-2008 11:47 AM
Re: automated sftp
Have you set up public-key pairs yet (as
already suggested)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2008 08:27 AM
08-20-2008 08:27 AM
Re: automated sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 02:04 AM
08-22-2008 02:04 AM
Re: automated sftp
ftp -i â n
mkdir /test
cd test
lcd /data2/ME/ME_DATA/
mput Date*.DAT
ENDFTP
Regards
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 02:06 AM
08-22-2008 02:06 AM
Re: automated sftp
As far I know I tried to do the sam from sftp from a script that is succesfully runnig on a linux machine but cannot done in HP-UX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 05:58 AM
08-22-2008 05:58 AM
Re: automated sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 06:34 AM
08-22-2008 06:34 AM
Re: automated sftp
steps:
1. Generate keypair at unix box using keygen
2. provide the public key pair to wintel guys
3. wintel guys will update key pair.
4. You will be initiating sftp connection request as following
sftp localuser "domainname\remoteuser"@wintelmachine_name
Refer to this doc...
http://www.astro.caltech.edu/~mbonati/WIRC/manual/DATARED/setting_up_no-password_ssh.html
same for sftp also..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2008 01:31 AM
08-25-2008 01:31 AM
Re: automated sftp
I created keypair. May I know the location of authorized_key file in windows servers ?
From windows to unix server, passwordless copy is working fine. But the reverse is not happening. I think the location of my authorized_key file is wrong.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2008 05:21 AM
08-25-2008 05:21 AM
Re: automated sftp
path=...\sftp\username\.ssh directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2008 05:33 AM
08-25-2008 05:33 AM
Re: automated sftp
If it is windows xp, then the best way is to install cygwin on it and do a passwordless sftp as you would do from any unix box to another one.
As far as I know, this is the only way to get the passwordless ssh/sftp to work on windows xp. Otherwise, it would always ask for the passwd.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2008 05:35 AM