- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Windows batch file to run a HP-UX script on a remo...
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
Forums
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
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
08-22-2006 04:07 AM
08-22-2006 04:07 AM
Can anyone please tell me how to configure the "OpenSSH" software so that it does not prompt for a password?
The scenario is that I want to shutdown HP-UX machines from a Windows machine. I want to create a batch file in windows that will run shutdown scripts in all the servers one by one. This I want to do without any human intervention.
I have installed "OpenSSH" on my windows machine and executed 'ssh root@
Please let me know what step I am missing.
Same problem with using rexec command.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2006 04:11 AM
08-22-2006 04:11 AM
Re: Windows batch file to run a HP-UX script on a remote machine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2006 04:41 AM
08-22-2006 04:41 AM
Re: Windows batch file to run a HP-UX script on a remote machine
This is still not working. I generated a file through ssh-keygen and renamed it to 'authorized_keys' and copied it to remote machine in the directory '/home/.ssh/'. This didn't work. I also created this file on remote machine and pasted only the rsa key into it. This didn't work either. It is still asking for the password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2006 05:00 AM
08-22-2006 05:00 AM
Re: Windows batch file to run a HP-UX script on a remote machine
Take a look at this doc (from Senthil Prabu.S). It's between two solaris boxes but it's the same principle.
hope this helps
Kenavo
Pat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2006 05:13 AM
08-22-2006 05:13 AM
SolutionBesides my religous objection to Windows boxes being permitted to run batch on HP-UX(joke), this is still a basic ssh issue.
Their needs to be the same user on both systems. ie, if you want root to run the job on HP-UX it needs to come from a windows user named root.
The ownership of the folder and permissions must be very precise or ssh will keep prompting for a password.
Try to set this up between to HP-UX boxes so that you know the Unix permissions. Then use the Windows GUI to match this as closely as possible.
Also see this document
http://www.hpuxconsulting.com/5004.ppt
You may need a different windows ssh client to make this work properly.
SEP
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
08-22-2006 05:17 AM
08-22-2006 05:17 AM
Re: Windows batch file to run a HP-UX script on a remote machine
where username is the name of the user whom your are connecting as.
thus ssh -l mstrong server1 scriptname
/home/mstrong/.ssh/authorized_keys needs the key. Also the permissions on that file and directory need to be 600.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2006 10:11 PM
08-22-2006 10:11 PM
Re: Windows batch file to run a HP-UX script on a remote machine
I have done everything that you guys have mentioned. But the password prompt is still there.
This is what I have done:
Windows> ssh-keygen -t rsa
Windows> copied id_rsa.pub to HP-UX server
HP-UX> touch /.ssh/authorized_keys
HP-UX> cat id_rsa.pub >> /.ssh/authorized_keys
HP-UX> chmod 600 /.ssh/authorized_keys
Windows> ssh root@ap1
Here it asks for a password. The above mentioned steps are all I have performed. What is it that I am missing??