Two question regarding sudo-login into an ubuntu-system (debian tips welcome as well):
- Is it possible to require sudoers on my box to only login with publickey-authentication?
- Is it possible to log which ip sudoers log in from and check that for "unusual activity" or take actions? I'm thinking about temporarily removing sudo-rights if sudoers don't log in from whitelisted IPs. Or is that too risky to be exploited?
sudowithssh. I think you meantsshin all of those cases. Andsshallows one to do all of those. – Dan D. Apr 2 '12 at 1:34