- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ssh problems with HostbasedAuthentication
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
02-05-2003 06:34 AM
02-05-2003 06:34 AM
sshd_config contains:
Protocol 2
IgnoreRhosts no
HostbasedAuthentication yes
X11Forwarding yes
X11UseLocalhost no
Subsystem sftp /opt/ssh/libexec/sftp-server
.shosts file contains:
mysys user
/etc/hosts file contains:
10.10.10.10 mysys
Then I run:
ssh -o HostbasedAuthentication=yes user@mysys
and it logins fine.
Now superuser adds another IP (20.20.20.20) to the system in other LAN connector and updates /etc/hosts:
10.10.10.10 mysys
20.20.20.20 mysys2
but if I run
ssh -o HostbasedAuthentication=yes user@mysys2
password is required always to login.
why ?
can anyone help me ?
thanx a lot
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 06:36 AM
02-05-2003 06:36 AM
Re: ssh problems with HostbasedAuthentication
mysys user
mysys2 user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 07:01 AM
02-05-2003 07:01 AM
Re: ssh problems with HostbasedAuthentication
if you are using openssh the shosts/rhosts authentification will only work with protocol version 1, you have set
Protocol 2
look at "man ssh" for more information.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 07:09 AM
02-05-2003 07:09 AM
Re: ssh problems with HostbasedAuthentication
ssh is (for good reason) very picky that file owner is the account that wants to login without password, and that .shosts ist only readable to them.
Otherwise ssh will ignore the file altogether
Have you tried the -v switch to make ssh a bit more verbose.
In most cases it will give you clues why it failed.
Is the hostkey in $HOME/.ssh/known_hosts still valid?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 08:43 AM
02-05-2003 08:43 AM
Re: ssh problems with HostbasedAuthentication
- Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 08:22 AM
02-06-2003 08:22 AM
Re: ssh problems with HostbasedAuthentication
Now my system accepts ssh-login without password from itself.
The problem now is a hostA accepts ssh-login without password from hostB but not from hostC... and I cannot find why ?
I added -vvv option in command line for debugging...
ssh -vvv -o HostbasedAuthentication=yes user@hostC
the following lines are a extract from all debug info:
debug1: authentications that can continue: publickey,password,keyboard-interactive,hostbased
debug3: start over, passed a different list publickey,password,keyboard-interactive,hostbased
debug3: preferred hostbased,publickey,keyboard-interactive,password
debug3: authmethod_lookup hostbased
debug3: remaining preferred: publickey,keyboard-interactive,password
debug3: authmethod_is_enabled hostbased
debug1: next auth method to try is hostbased
debug2: userauth_hostbased: chost hostC.
debug2: we sent a hostbased packet, wait for reply
debug1: Remote: Accepted by .shosts.
debug1: authentications that can continue: publickey,password,keyboard-interactive,hostbased
debug2: userauth_hostbased: chost hostC.
debug2: we sent a hostbased packet, wait for reply
debug1: Remote: Accepted by .shosts.
debug1: authentications that can continue: publickey,password,keyboard-interactive,hostbased
debug1: userauth_hostbased: no more client hostkeys
debug2: we did not send a packet, disable method
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: next auth method to try is publickey
debug1: try privkey: /.ssh/id_rsa
debug3: no such identity: /.ssh/id_rsa
debug1: try privkey: /.ssh/id_dsa
debug3: no such identity: /.ssh/id_dsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
Compare with the messages reported by command:
ssh -vvv -o HostbasedAuthentication=yes user@hostA
debug1: authentications that can continue: publickey,password,keyboard-interactive,hostbased
debug3: start over, passed a different list publickey,password,keyboard-interactive,hostbased
debug3: preferred hostbased,publickey,keyboard-interactive,password
debug3: authmethod_lookup hostbased
debug3: remaining preferred: publickey,keyboard-interactive,password
debug3: authmethod_is_enabled hostbased
debug1: next auth method to try is hostbased
debug2: userauth_hostbased: chost in_bckup.
debug2: we sent a hostbased packet, wait for reply
debug1: Remote: Accepted by .shosts.
debug1: authentications that can continue: publickey,password,keyboard-interactive,hostbased
debug2: userauth_hostbased: chost in_bckup.
debug2: we sent a hostbased packet, wait for reply
debug1: Remote: Accepted by .shosts.
debug1: ssh-userauth2 successful: method hostbased
debug3: clear hostkey 0
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug1: send channel open 0
debug1: Entering interactive session.
Can anyone help me ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 08:30 AM
02-06-2003 08:30 AM
SolutionIt worked for me.
P
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
02-07-2003 01:07 AM
02-07-2003 01:07 AM
Re: ssh problems with HostbasedAuthentication
Your doc helped me to solve my problems with SSH.