- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Passwordless SSH problem
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
06-09-2006 03:34 AM
06-09-2006 03:34 AM
Passwordless SSH problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2006 06:31 PM
06-11-2006 06:31 PM
Re: Passwordless SSH problem
ssh -1 -vvv ........
Make sure the server is started with protocol 1 support.
Note: ssh protocol version 1 is less secured than version 2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2006 06:42 PM
06-11-2006 06:42 PM
Re: Passwordless SSH problem
The most common issues with password free access are the owner of the home directory and .ssh directory and the permissions therein.
The directories and files must be owned by the user attempting to login.
Default permissions should be what you see below:
drwxr-x--- 15 root root 4096 Jun 11 04:42 /root/
drwx------ 2 root root 4096 May 10 08:04 /root/.ssh/
[root@gated .ssh]# ll
total 32
-rw-r--r-- 1 root root 3653 Jun 4 02:37 authorized_keys
-rw------- 1 root root 668 May 10 08:03 id_dsa
-rw-r--r-- 1 root root 614 May 10 08:03 id_dsa.pub
-rw-r--r-- 1 root root 1312 Jun 8 10:31 known_hosts
They may look a bit different under windows, but the permission requires are exactly the same.
ssh/scp/sftp with the -vvv command often brings issues to light.
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
06-12-2006 12:46 AM
06-12-2006 12:46 AM
Re: Passwordless SSH problem
When I created the keygens on HP-UX and the Windows box I used
ssh-kengen -t rsa
This should have created a protocol 2 RSA. I do get the following debug message:
debug1: Enabling compatibility mode for protocol 2.0
I tried forcing protocol 2 and get the same debug messages in the connection attempt:
ssh -i job_tcon_rsa -v -2 dewey.nhctc.edu
As for the directory and files, on the HP-UX system I have the permissions set the way you suggested:
drwx------ 2 job_tcon users 2048 Jun 12 07:54 .ssh
-rw-r--r-- 1 job_tcon users 224 Jun 9 08:23 authorized_keys
-rw------- 1 job_tcon users 951 Jun 9 08:20 job_tcon_cannon_rsa
-rw-r--r-- 1 job_tcon users 225 Jun 9 08:20 job_tcon_cannon_rsa.pub
-rwxr--r-- 1 job_tcon users 475 Jun 9 09:45 known_hosts
I did read openSSH for Windows key_authorization.txt file that some Windows servers have problems reading the public key try setting StrictModes to 'no' in sshd_config. I did that, stop/restart OpenSSH and everything is working.
Regards,
Larry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 01:31 AM
06-14-2006 01:31 AM