- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Automate 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
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
тАО08-30-2006 06:09 PM
тАО08-30-2006 06:09 PM
I want to automate SFTP to one of our managed node as FTP ports are not open for the same.
Please provide me a script if someone has done the same.
Cheers:)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2006 08:25 PM
тАО08-30-2006 08:25 PM
Re: Automate SFTP
you must use the -B option to specify a file, which contains the commands to use, e.g.
$ sftp "-B" a.bat ! pls. note the "" to force uppercase
where A.BAT may contain e.g.:
open -l node
ls
If A.BAT is not STMLF, SFTP converts it on the fly (at least under TCPIP V5.6).
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2006 08:32 PM
тАО08-30-2006 08:32 PM
Re: Automate SFTP
I havent used SFTP yet but I would imagine it's very similar in it's use to regular FTP.
A simple FTP example :---
script.com ....
--------------
$!
$ sftp name-sftp-server
username
password
dir
put some-file
dir
bye
$!
----------------
According to the book you can use...
$ sftp -B file-with-sftp-commands.com user@node
You put the ftp commands in the "file" indicated by "-B"
I found this in the "TCPIP Services for OpenVMS GUIDE TO SSH"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2006 11:55 PM
тАО08-30-2006 11:55 PM
SolutionPublic key and host based authentication require placing files containing public keys in the correct places and setting up other control files to point to them. The manuals show this information and it has been discussed here before.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2006 02:50 AM
тАО08-31-2006 02:50 AM
Re: Automate SFTP
please see my previous thread about setting up SFTP on OpenVMS:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=985928
Hope this helps,
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2006 09:18 PM
тАО09-03-2006 09:18 PM
Re: Automate SFTP
Yes I did see the solutions provided earlier.
This should work.
Cheers:)
vibhor