1833934 Members
1776 Online
110063 Solutions
New Discussion

Re: ssh login problem

 
aneez
Regular Advisor

ssh login problem

hi all
i want to enable the ssh login for specific desktops.is it possible to enable login ssh login with mac adress of specific pc's?
beause here i am using the dhcp and same user id for all aplication users. how i can solve this scenario?

thanks in advance


aneez
1 REPLY 1
MHudec
Frequent Advisor

Re: ssh login problem

Hello Aneez,

in general (I am not sure if this works on hp-ux, never tried that so far, just digging up from my freebsd times) if you use key authentication (preferable these days) and if you have paired mac addresses with ip adresses (static assignment when request for ip comes through to dhcp), then it is simple.

In user's homedir, there is .ssh dir with authorized_keys file. Just put in the beginning of line containing the key something like:

from=""

where is the IP address incoming user's system. is all that stuff related to key.

Also you can put more IP, hostnames to , just separate them with coma, like: from="192.168.0.*,*.users.hp.com" etc.

Hope this helps.