- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- provide password during scp command.
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
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
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
02-29-2012 07:26 AM
02-29-2012 07:26 AM
provide password during scp command.
Hi All,
I am sitting on HP UX 11.11 and I need to perform the scp to different host. in porder to achieve this, I have created ths sh file , but it's getting for password problem.
nohup sh scp.sh
below commands inside the scp.sh file
scp -p file_name target@osuser:/db/qa05/export/
- Tags:
- scp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2012 09:20 AM
02-29-2012 09:20 AM
Re: provide password during scp command.
Have you set up the keys for ssh? And do the files and directories have the right permissions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2012 10:17 AM
02-29-2012 10:17 AM
Re: provide password during scp command.
we have everything set up , it's only , when i run the sh file in background, it got failed becuase of the passowrd for oraqa05 on oradev3 host. now, i need something like, where i can script the password , so that i can run this in background , without any intraction. i hope, i am clear.
prod02> nohup sh scp.sh & [5] + Stopped (tty output) nohup sh scp.sh &
scp -p edemo_eshare_28feb.dump.gz edemo_eshare_28feb.log oraqa05@oradev3:/db/qa05/export/
oraqa05@oradev3's password:
edemo_eshare_28feb.d 24% |***********
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2012 10:52 AM
02-29-2012 10:52 AM
Re: provide password during scp command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2012 12:21 PM
02-29-2012 12:21 PM
Re: provide password during scp command.
>we have everything set up
What do you have set up?
You can use ssh and:
1) Still have passwords
2) Have a passphrase instead
3) Have password/passphraseless logins.
4) Host-based with ~/.rhosts or ~/.shosts
For 2) you can also cache the passphrase in a ssh-agent, added with ssh-add.
Which do you want to do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2012 11:24 AM
04-11-2012 11:24 AM
Re: provide password during scp command.
This problem could be overcome by configuring authentication with public keys instead of using passwords.
Follow the steps in "HP-UX Secure Shell Getting Started Guide" to configure public key authentication. The guide is available at the following link:
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c03243765/c03243765.pdf