- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SSH not working
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
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
07-15-2009 10:46 AM
07-15-2009 10:46 AM
SSH not working
I am trying to setup ssh between two hpux 11.23, but it keep asking for password. here is the steps I took; So, what am I missing?
In Short
________________________________________
1. System1: $ ssh-keygen –t dsa
2. Creates a file in $HOME/.ssh called "id_rsa.pub"
3. Copy this file to the target machine ("System2") to $HOME/.ssh/ as "authorized_keys2"
4. Repeat the steps mentioned above but with reversed setup,
5. "ssh-keygen" on System2, copy the file ~/.ssh/id_rsa.pub to
6. System1 into ~/.ssh/ as "authorized_keys2"
7. Create a file called 'config' in $HOME/.ssh with these two lines in them.
o CheckHostIP no
StrictHostKeyChecking no
8. ssh from each system to the other system without being asked for a password.
HERE is the error msg I am getting.
Permission denied (publickey,password,keyboard-interactive,hostbased).
Thanks;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2009 10:52 AM
07-15-2009 10:52 AM
Re: SSH not working
Check the ownership of the home directory and the .ssh folder.
If its not the user it won't work.
Check the permissions on the files in .ssh
Here are good permissions and ownership for the root user.
-rw-r--r-- 1 root root 1221 Feb 20 06:30 authorzed_keys
-rw------- 1 root root 668 Feb 14 20:35 id_dsa
-rw-r--r-- 1 root root 616 Feb 14 20:35 id_dsa.pub
-rw-r--r-- 1 root root 2484 Jul 6 22:24 known_hosts
Home directory and .ssh folder are also owned by root.
Check the syslog.log for further cryptic clues.
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
07-15-2009 10:55 AM
07-15-2009 10:55 AM
Re: SSH not working
> [...]
It might help to see what you did to get
this error message. A transcript showing
actual "ssh -v [...]" output would be even
better.
There are dozens of SSH problem threads in
this forum. Many of them could suggest an
answer to your problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2009 11:17 AM
07-15-2009 11:17 AM
Re: SSH not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2009 11:22 AM
07-15-2009 11:22 AM
Re: SSH not working
ssh is very finicky about file ownerships and permission and rightfully so as its main purpose is secure, un-spoofable communications.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2009 11:52 AM
07-15-2009 11:52 AM