- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ssh authentication on IP adress
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
08-01-2006 01:23 AM
08-01-2006 01:23 AM
I have installed SSH 2 on HP-UX 11.00. I want to configure the sshd to authenticate the sessions based on IP adress of the client (or fully qualified domain name). This means that I want sshd to accept requests only from certain hosts (IP adress/domain names) and nothing else!Is this configurable as HostBased Authentication methos in ssh? Can you tell me in short the necessary steps to configure this kind of authentication?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2006 02:27 AM
08-01-2006 02:27 AM
Re: ssh authentication on IP adress
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2006 02:27 AM
08-01-2006 02:27 AM
Re: ssh authentication on IP adress
For iptables on linux and how you can configure ssh access restrictions, please see this page:
http://www.slackbook.org/html/security-host.html
hope it helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2006 02:33 AM
08-01-2006 02:33 AM
Re: ssh authentication on IP adress
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2006 02:36 AM
08-01-2006 02:36 AM
SolutionAllowUsers
This keyword can be followed by a list of user name patterns, separated by spaces. If specified, login is allowed only for users names that match one of the patterns. `*' and `?' can be used as wildcards in the patterns. Only user names are valid; a numerical user ID is not recognized.
By default, login is allowed for all users.
*** IMPORTANT ***
If the pattern takes the form USER@HOST then USER and HOST are separately checked, restricting logins to particular users from particular hosts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2006 02:47 AM
08-01-2006 02:47 AM
Re: ssh authentication on IP adress
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2006 02:58 AM
08-01-2006 02:58 AM
Re: ssh authentication on IP adress
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2006 07:10 AM
08-01-2006 07:10 AM
Re: ssh authentication on IP adress
ssh and sftp are part of openssh and use the exact same authentication method.
Whatever you configure for ssh will act the same way on sftp.
This question:
>>>
Can you tell me more about this key AllowUsers?Is this key is per authentication method or default for all methods - because in the sshd_config I have a number of directives of form PasswordAuthAllowUsers etc...? It is configurable in sshd_config file right?
>>>
I believe these methods are configurable in sshd_config or ssh_config, probably the former.
Few thoughts.
Be careful going wild with this, you want to be able to take a vacation some day and the next guy needs to be able to understand this.
This method would be a problem on the floating IP address of a cluster due to the MAC address checking features of openssh.
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
08-01-2006 01:22 PM
08-01-2006 01:22 PM
Re: ssh authentication on IP adress
In the hosts.allow file simply put
sshd:
In the hosts.deny file simply put
sshd:ALL
Only IP address 1 and 2 can access as far as I can determine. I'm running the software on HP-UX 11i v1 loaded from the HP software site (vers A.04.30).
Be careful you don't lock yourself out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2006 11:17 PM
08-01-2006 11:17 PM
Re: ssh authentication on IP adress
Dejan.