Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Search Forums:



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 09-10-2010
Kesavan's Avatar
Registered User
 

Join Date: Aug 2010
Location: TamilNadu,India
Posts: 44
Thanks: 1
Thanked 1 Time in 1 Post
Exclamation Hostbased Authentication

How to setup a host based Authentication for a server and a client,or for a server and more clients?
Can someone help me in this please.......
Sponsored Links
    #2  
Old 09-10-2010
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
code tag tagger
 

Join Date: Sep 2007
Location: Germany
Posts: 5,201
Thanks: 48
Thanked 285 Times in 271 Posts
As part of ssh or just as a tcp wrapper like using /etc/hosts.allow and /etc/hosts.deny??
Sponsored Links
    #3  
Old 09-10-2010
Kesavan's Avatar
Registered User
 

Join Date: Aug 2010
Location: TamilNadu,India
Posts: 44
Thanks: 1
Thanked 1 Time in 1 Post
Smile

As a part of ssh....
Thanks for your assistance in advance..
    #4  
Old 09-10-2010
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
code tag tagger
 

Join Date: Sep 2007
Location: Germany
Posts: 5,201
Thanks: 48
Thanked 285 Times in 271 Posts
From man page of sshd_config:

Code:
          HostbasedAuthentication
               Specifies whether rhosts or /etc/hosts.equiv
               authentication together with successful public key
               client host authentication is allowed (hostbased
               authentication).  This option is similar to
               RhostsRSAAuthentication and applies to protocol version
               2 only.  The default is ``no''.

So edit your /etc/ssh/sshd_config accordingly, setting HostbasedAuthentication yes, restart sshd and play arround with filling /etc/hosts.equiv with names/ip-addresses.
Sponsored Links
    #5  
Old 09-10-2010
Kesavan's Avatar
Registered User
 

Join Date: Aug 2010
Location: TamilNadu,India
Posts: 44
Thanks: 1
Thanked 1 Time in 1 Post
Unhappy

Quote:
Originally Posted by zaxxon View Post
From man page of sshd_config:

Code:
          HostbasedAuthentication
               Specifies whether rhosts or /etc/hosts.equiv
               authentication together with successful public key
               client host authentication is allowed (hostbased
               authentication).  This option is similar to
               RhostsRSAAuthentication and applies to protocol version
               2 only.  The default is ``no''.

So edit your /etc/ssh/sshd_config accordingly, setting HostbasedAuthentication yes, restart sshd and play arround with filling /etc/hosts.equiv with names/ip-addresses.
iam a newbie, sorry for asking too much questions,
does this applies for both client and server?
Sponsored Links
    #6  
Old 09-10-2010
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
code tag tagger
 

Join Date: Sep 2007
Location: Germany
Posts: 5,201
Thanks: 48
Thanked 285 Times in 271 Posts
No worries. It applies to any machine where a sshd is running. ssh_config is for client config and sshd_config is for server config. If there is a acting as a server, you have to edit it's /etc/ssh/sshd_config and restart it's sshd, plus editing the hosts.equiv to your needs. If you come from another box like a pc with putty or ssh client from a linux box for example, you do not have to edit or restart anything on the client.
Sponsored Links
    #7  
Old 09-10-2010
Kesavan's Avatar
Registered User
 

Join Date: Aug 2010
Location: TamilNadu,India
Posts: 44
Thanks: 1
Thanked 1 Time in 1 Post
Unhappy

Quote:
Originally Posted by zaxxon View Post
No worries. It applies to any machine where a sshd is running. ssh_config is for client config and sshd_config is for server config. If there is a acting as a server, you have to edit it's /etc/ssh/sshd_config and restart it's sshd, plus editing the hosts.equiv to your needs. If you come from another box like a pc with putty or ssh client from a linux box for example, you do not have to edit or restart anything on the client.

i did the configurations, i enabled the HostbasedAuthentication yes in both the ssh_config of client and sshd_config of server. Then i added the the client hostname and ip in the following manner in etc/hosts.equiv file of the server.

clienthost ip

but when i gave ssh server from the client it is asking for the password.
Please correct me if i were wrong in any of the above mentioned scenarios...
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
PAM authentication failure capibolso UNIX for Advanced & Expert Users 1 12-16-2008 10:25 PM
passphrase and ssh authentication Minguccio75 UNIX for Advanced & Expert Users 1 01-19-2007 06:27 AM
Netcat with Authentication? pileofrogs UNIX for Advanced & Expert Users 1 12-04-2006 09:48 AM
How to find authentication log qais UNIX for Dummies Questions & Answers 1 11-14-2006 09:08 AM
SSH key authentication stancwong UNIX for Dummies Questions & Answers 3 02-24-2006 05:19 AM



All times are GMT -4. The time now is 03:02 AM.