HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SFTP without prompting password
Operating System - HP-UX
1830895
Members
1472
Online
110017
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
Go to solution
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
09-02-2004 10:28 PM
09-02-2004 10:28 PM
Hi All,
Pls help. My customer's requesting to use SFTP to transfer some files regularly from serverA to serverB using a simple script. Because public/private keys policy is not so clear in my company, so we avoid to use public/private keys. Is there any way to use SFTP without prompting a password except using public/private key? FYI that I have tried to use .netrc, but it seems like .netrc is only for ftp and it is not applicable for sftp.
Please help. High score will be given.
Thanks and Best Regards,
Negara
Pls help. My customer's requesting to use SFTP to transfer some files regularly from serverA to serverB using a simple script. Because public/private keys policy is not so clear in my company, so we avoid to use public/private keys. Is there any way to use SFTP without prompting a password except using public/private key? FYI that I have tried to use .netrc, but it seems like .netrc is only for ftp and it is not applicable for sftp.
Please help. High score will be given.
Thanks and Best Regards,
Negara
Santos
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2004 10:33 PM
09-02-2004 10:33 PM
Re: SFTP without prompting password
The best way is to use public/private key, however you can also script it with newer version of kermit, which has ssh functionality built in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2004 10:56 PM
09-02-2004 10:56 PM
Re: SFTP without prompting password
Thanks.
Is there any way wihtout prompting password except public/private keys?
Is there any way wihtout prompting password except public/private keys?
Santos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2004 11:39 PM
09-02-2004 11:39 PM
Solution
I'm fairly positive that you will need keys.
However it's easy.
Let's assume userA is the user who will performing the sftp action (whether it be put or get).
userA needs to create a set of keys - but the key is to make them passwordless.
ssh-keygen -t (keytype - either rsa or dsa)
It will prompt you for key location - just press enter
It will prompt for passphrase. Press enter twice here - this will make it passwordless.
UserA will now have a diretory ~/.ssh which contains two files. Assuming you used an rsa key, the files are id_rsa.pub and id_rsa.
Let's assume that userB is the remote system. You will need to transfer userA's ~/.ssh/id_rsa.pub file to userB's ~/.ssh/authorized_key file. If userB already has a ~/.ssh/authorized_key file, simply append the file.
To test, as userA:
ssh date
However it's easy.
Let's assume userA is the user who will performing the sftp action (whether it be put or get).
userA needs to create a set of keys - but the key is to make them passwordless.
ssh-keygen -t (keytype - either rsa or dsa)
It will prompt you for key location - just press enter
It will prompt for passphrase. Press enter twice here - this will make it passwordless.
UserA will now have a diretory ~/.ssh which contains two files. Assuming you used an rsa key, the files are id_rsa.pub and id_rsa.
Let's assume that userB is the remote system. You will need to transfer userA's ~/.ssh/id_rsa.pub file to userB's ~/.ssh/authorized_key file. If userB already has a ~/.ssh/authorized_key file, simply append the file.
To test, as userA:
ssh
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