HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script help
Operating System - HP-UX
1834912
Members
3167
Online
110071
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
11-28-2003 04:32 AM
11-28-2003 04:32 AM
Script help
Hi Guys,
Anyone using sftp in the script to transfer files or some one have an idea how to use sftp in script, like how to pass password in script.
Thanks
Anthony
Anyone using sftp in the script to transfer files or some one have an idea how to use sftp in script, like how to pass password in script.
Thanks
Anthony
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 04:42 AM
11-28-2003 04:42 AM
Re: Script help
Here is how to do it in regular ftp
ftp -v -n < open myserver.com
user username password
cd /somedir
lcd localhost/mydirectory
put filename
EOF
Since however you are using Secure FTP that means you have the openssh tools.
The attached document tells you how to generate and exchange public keys. This will allow you to safely and securely do scp commands without needing a password.
See attached word doc.
SEP
ftp -v -n <
user username password
cd /somedir
lcd localhost/mydirectory
put filename
EOF
Since however you are using Secure FTP that means you have the openssh tools.
The attached document tells you how to generate and exchange public keys. This will allow you to safely and securely do scp commands without needing a password.
See attached word doc.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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
11-28-2003 04:55 AM
11-28-2003 04:55 AM
Re: Script help
Hi,
It is not possible to pass the password through the script for sftp/stelnet. However you can use "Expect" tool to automate this. For more info refer to my previous postings,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=45609
-Karthik S S
It is not possible to pass the password through the script for sftp/stelnet. However you can use "Expect" tool to automate this. For more info refer to my previous postings,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=45609
-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
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