Different authentication policies for local and remote authentication
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Different authentication policies for local and remote authentication
Hello,
I would like to have the password-based authentication allowed only if I login from one of our local machines (or directly from the terminal window/console straight on the machine), and the key(rsa/dsa)-based authentication from any other external box.
I am not happy about the solution I figured out (I am still not sure if this actually works, since I did not get a chance to log into the box from any remote/external point).
I just tried to access the machine from a remote location by using a password authentication and it worked as well.
I am a bit puzzled, since I expected that there will no be authentication allowed from a remote location at all, due to the rule in /etc/security/access.conf...
Now, back to the goal: I would like to have a password based ssh (or just directly from console) access to a box from a machine located on the same network, and a key-based access to the same machine from a non-local network.
Oh, this is awesome! We have OpenSSH_5.1p1 and the match directive perfectly fits the need. Thank you very much! I finally feel relieved after days of searching and reading!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.