Limiting login to IPs - changing via SSH?

4 posts / 0 new
Last post
#1 Sun, 11/22/2009 - 17:35
Daworm

Limiting login to IPs - changing via SSH?

Limiting login to IPs - changing via SSH? In my brains to improve security to my admin login I decided to limit access to my root login to my home IP only, thinking that my limited admin access account for creating / managing all virtual servers I create, I can use from work and/or at all other times.

Little did I realise that limiting login on my root account, also limits access on my limited admin account due to it having a secondary group... of root.

<-- fail

How do I (via SSH) add in another IP for "only allow access"?

Which file/s do I edit?

Sun, 11/22/2009 - 18:36
andreychek

Howdy,

Yeah, I hate it when that happens :-)

I'm sure it's possible to tweak that over SSH, but off the top of my head I don't know which file to look at.

It would be a file in /etc/webmin -- you might be able to grep for the current IP that's allowed within the config files under /etc/webmin, and add your additional IP to that.

However, I'll do some poking around and see if I can figure out which one it is :-)

-Eric

Sun, 11/22/2009 - 18:56
Daworm

Cool - I cannot remember my home IP (never really looked for it until the other day when I jumped on "what is my ip" website) :)

Wed, 11/25/2009 - 22:38
Daworm

Did you find it? I keep forgetting to add my work IP to allowed access...

Topic locked