HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: login problem
Operating System - HP-UX
1834774
Members
3164
Online
110070
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
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
01-03-2007 02:38 AM
01-03-2007 02:38 AM
login problem
Hi,
i have posted message regarding the ssh secure shell problem few days ago. Actually i'm having a problem that i'm able to execute ssh as a client from commnad line from a hp box.But ssh is failing with permission denied ,public key ,passwd error when used within the script. Any workaround idea or fix?Strongly Appreciated.
Thanks
i have posted message regarding the ssh secure shell problem few days ago. Actually i'm having a problem that i'm able to execute ssh as a client from commnad line from a hp box.But ssh is failing with permission denied ,public key ,passwd error when used within the script. Any workaround idea or fix?Strongly Appreciated.
Thanks
Learning ...
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2007 03:02 AM
01-03-2007 03:02 AM
Re: login problem
Do you setup paswordless ssh login to be able to use it from script - http://www.cvrti.utah.edu/~dustman/no-more-pw-ssh/
regards,
ivan
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2007 03:44 AM
01-03-2007 03:44 AM
Re: login problem
Thanks for the doc. But for couple of reasons i may wish to try the ssh with passwd.
Thanks anyway for the useful document.
Thanks
Thanks anyway for the useful document.
Thanks
Learning ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2007 03:57 AM
01-15-2007 03:57 AM
Re: login problem
There's not so many details in you problem description...
It could be a scripting error:
Do you try to pipe the password instead of sharing the public key?
- this will not work unless you're using a sophisticated script which send the password *after* you've received the prompt (otherwise the buffer will be cleared).
- it could be that you run with another username...
- always check environment when a script don't run properly as a cronjob.
- also make sure it is sh-posix or that you specify which kind of shell script
Assuming no script problem:
This could be a host lookup problem.
Quite common if you have multiple NIC's.
What is the hostname in the public key?
# cat ~/.ssh/id_rsa.pub
Is this the same user@hostname as you always will be resolved to on the remote host?
When you login and run the script manually, the script/communication is likely to use the same interface as you connected to.
Client -lan1-> Host:Script --ssh-lan1-> Host2
(no-pty)Host:Script --ssh-lan2-> Host2
If Host is resolved differently on Host2 depending on which interface it is using, it might be unable to verify the key.
/Tor-Arne
It could be a scripting error:
Do you try to pipe the password instead of sharing the public key?
- this will not work unless you're using a sophisticated script which send the password *after* you've received the prompt (otherwise the buffer will be cleared).
- it could be that you run with another username...
- always check environment when a script don't run properly as a cronjob.
- also make sure it is sh-posix or that you specify which kind of shell script
Assuming no script problem:
This could be a host lookup problem.
Quite common if you have multiple NIC's.
What is the hostname in the public key?
# cat ~/.ssh/id_rsa.pub
Is this the same user@hostname as you always will be resolved to on the remote host?
When you login and run the script manually, the script/communication is likely to use the same interface as you connected to.
Client -lan1-> Host:Script --ssh-lan1-> Host2
(no-pty)Host:Script --ssh-lan2-> Host2
If Host is resolved differently on Host2 depending on which interface it is using, it might be unable to verify the key.
/Tor-Arne
I'm trying to become President of the state I'm in...
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