HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Scripting sftp with password in batch mode
Operating System - Linux
1829187
Members
17092
Online
109986
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
03-18-2008 07:29 PM
03-18-2008 07:29 PM
Scripting sftp with password in batch mode
I'm attempting to automate an sftp process, but have been unable to provide the password that works interactively.
The remote server is not ours and we would prefer to solve this without further involving the other party if at all possible.
But every attempt I've made, reading and following various other articles in this forum, has failed. I've run it with debugging on and if -b or BatchMode Yes is given, no attempt is made to read the password from stdin or the batch file. It appears that authentication must complete before the batch file or stdin is read for commands.
Is that the final word? Is there no way to non-interactively supply a password?
This is HP-UX 11.11
SSH is " T1471AA A.04.30.002 HP-UX Secure Shell"
The remote server is not ours and we would prefer to solve this without further involving the other party if at all possible.
But every attempt I've made, reading and following various other articles in this forum, has failed. I've run it with debugging on and if -b or BatchMode Yes is given, no attempt is made to read the password from stdin or the batch file. It appears that authentication must complete before the batch file or stdin is read for commands.
Is that the final word? Is there no way to non-interactively supply a password?
This is HP-UX 11.11
SSH is " T1471AA A.04.30.002 HP-UX Secure Shell"
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2008 09:05 PM
03-18-2008 09:05 PM
Re: Scripting sftp with password in batch mode
> Is that the final word? Is there no way to
> non-interactively supply a password?
It's hardly a non-existence proof, but I
don't think that there is. There's a strong
argument to be made that any scheme which
allows (or encourages) a password to be
stored in a file is inherently insecure.
I thought that the normal way to deal with
this sort of requirement was to use
public-key authorization with a no-passphrase
key. Or host-based authorization. Or any
other possible scheme which didn't actually
require a password to be supplied.
> This is HP-UX 11.11
So perhaps an HP-UX forum would be a better
place for this question than this Linux
forum.
> non-interactively supply a password?
It's hardly a non-existence proof, but I
don't think that there is. There's a strong
argument to be made that any scheme which
allows (or encourages) a password to be
stored in a file is inherently insecure.
I thought that the normal way to deal with
this sort of requirement was to use
public-key authorization with a no-passphrase
key. Or host-based authorization. Or any
other possible scheme which didn't actually
require a password to be supplied.
> This is HP-UX 11.11
So perhaps an HP-UX forum would be a better
place for this question than this Linux
forum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2008 10:16 PM
03-18-2008 10:16 PM
Re: Scripting sftp with password in batch mode
Oops! I was reading articles for OpenVMS, Linux, and HP-UX, and thought I was replying to one of the HP-UX onces when I wrote the post.
Mods, feel free to delete this thread if you like...
Mods, feel free to delete this thread if you like...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP