- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- help needed on ssh and scp in shell scripting
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
тАО04-18-2007 06:36 PM
тАО04-18-2007 06:36 PM
help needed on ssh and scp in shell scripting
i have few rpms on my system.th eproblem is that i have to copy these rpms to another system whose ip is say 12.0.0.34.and i have to run the rpm there.it is usually for updating.i want to use ssh and scp command but again whn using these i have supply the password in my script itself.sum pls tel me how to do this.my machines ip may be 12.0.0.13.thnks in advance.
- Tags:
- ssh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2007 06:53 PM
тАО04-18-2007 06:53 PM
Re: help needed on ssh and scp in shell scripting
1. run `ssh-keygen -d` on you source machine.
2. copy the file ~/.ssh/id.dsa_pub username@remotehost:/tmp/
3. login to remote machine.
4. run `cat /tmp/id.dsa_pub >> ~/.ssh/authorized_keys`
5. remove the public key from tmp `rm /tmp/id.dsa_pub`.
6.logout from remote machine and try to login there via ssh - you shouldn't be prompted for password anymore...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2007 07:00 PM
тАО04-18-2007 07:00 PM
Re: help needed on ssh and scp in shell scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2007 09:30 PM
тАО04-18-2007 09:30 PM
Re: help needed on ssh and scp in shell scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2007 01:27 AM
тАО04-23-2007 01:27 AM
Re: help needed on ssh and scp in shell scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2007 04:21 AM
тАО04-23-2007 04:21 AM
Re: help needed on ssh and scp in shell scripting
Enter passphrase (empty for no passphrase):
Simple press
Vic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2007 06:11 PM
тАО04-23-2007 06:11 PM