- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SSH as a replacement for REMSH
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
тАО11-13-2006 10:15 PM
тАО11-13-2006 10:15 PM
Now the scripts I am looking to amend use commands like, remsh DBHOST -l orauser -n "/oracle/shutdownscript". If I attempt to replace this with ssh orauser@DBHOST /oracle/shutdownscript I get an error message relating to a authorisation failure, Permission denied (publickey,keyboard-interactive).
Is what I am attempting to do a valid use of SSH, or is it beyond it's capapbility. I guess I could create the orauser on both machines and create a public key, but I would like to avoid having to do this. It will be quiet an over head as I will have to do the same for every client machine to the backup server.
Any comments, assistance greatfully received.
Berd
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2006 10:50 PM
тАО11-13-2006 10:50 PM
Re: SSH as a replacement for REMSH
first of all, check if you get the shell prompt when you run:
ssh orauser@DBHOST
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2006 11:11 PM
тАО11-13-2006 11:11 PM
Re: SSH as a replacement for REMSH
I don't get a shell promt, I get the same error message.
Regards,
Berd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2006 11:48 PM
тАО11-13-2006 11:48 PM
Solutionssh is a valid replacement for remesh, I've done it.
The problem here is probably directory or file permissions on the .ssh directory.
See http://www.hpuxconsulting.com/5003.ppt or http://www.hpuxconsulting.com/5004.ppt
One of them is unrelated but I can't remember which.
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
тАО11-14-2006 02:01 AM
тАО11-14-2006 02:01 AM
Re: SSH as a replacement for REMSH
You're right. This looks like a permissions issue on the users home directory. Permissions are set to 775 as oppose to the required 755.
I'm looking to test the change of permissions on 2 test boxes, but now I am having an issue setting up ssh between these. I'm now getting 'Host key verification failed', although I have copied the current public key across and all permissions are ok ?
Regards,
Herdip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2006 03:46 AM
тАО11-14-2006 03:46 AM
Re: SSH as a replacement for REMSH
Actually, this is not an issue with the permissions on the home directory (at least not yet) and, to answer your first question, this is a perfect example of what ssh can do.
You updated root's authorized keys file on serverB, but you're trying to login as orauser on serverb.
If you want to ssh, as root, from Server A to orauser@ServerB, you will need to copy the public key to ~orauser@serverB:.ssh/authorized_keys
Note that, similarly to cron, ssh remote commands have a limited environment configured - not as limited as cron, but still not what you'd expect. You'll need to ensure that the /oracle/shutdownscript has all the environment variables defined that it needs to access the database.
HTH;
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2006 01:57 AM
тАО11-20-2006 01:57 AM
Re: SSH as a replacement for REMSH
I found this to be caused by 2 issues. Firstly, as mentioned the permissions on the home directory of the remote host were 775, as oppose to 755. Even having corrected this I was still get 'Host Verification Failed' messages. I then amended the StrictHostKeyChecking variable in /etc/opt/ssh/ssh_config. Disabling it, and then re-enabling after a first successful connection was mad. This seems to have resolved the problem.
Regards,
Berd