Operating System - HP-UX
1834479 Members
3658 Online
110067 Solutions
New Discussion

telnet security restrictions

 
SOLVED
Go to solution
Marcin Mirkowski_1
Occasional Contributor

telnet security restrictions

Hello,

How can I set restrictions to log in to the server for one user to limit IP address from which the connection is made?
It's no problem to set that restrictions in inetd.sec, but this is limitation for all users and I want to set this onlu for one.

BR,
Miron
4 REPLIES 4
KapilRaj
Honored Contributor

Re: telnet security restrictions

Miron,

a simple script in /etc/profile to reject him / IP ??

Kaps
Nothing is impossible
Marcin Mirkowski_1
Occasional Contributor

Re: telnet security restrictions

Hello,

I was thinking about this resolution, but I'm looking for some more professional way.

Miron
Mark Grant
Honored Contributor
Solution

Re: telnet security restrictions

Marcin, we've been here before and there insn't another solution that the .profile approach.

grep `who am i -a | awk '{print $8}'` > /dev/null ¦¦ exit 1

Isn't too ugly for a .pro
Never preceed any demonstration with anything more predictive than "watch this"
KapilRaj
Honored Contributor

Re: telnet security restrictions

I have SSH installed in AIX and have disabled telnet totally !

and thru ssh you can have the following option in /etc/ssh/sshd_config

AllowGroups sshusers

Add all other users except this id to "sshusers" group and you are done !!!

I am sorry have'nt tested this in HPUX :(

Also you need some tool like putty (freeware ) to access this node thru port 22 and no access will be on 23 (telnet) !!!


Regds,

Kaps
Nothing is impossible