LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   User with SSH logon only (https://www.linuxquestions.org/questions/linux-security-4/user-with-ssh-logon-only-788174/)

DorsetBlue 02-10-2010 04:37 AM

User with SSH logon only
 
Is there anyway to prevent a user from being able to logon at a machine (Terminal and XWindows) but allow that user to logon remotely using SSH?

This user is for remote capture of logs only - on a private network (no internet access).

centosboy 02-10-2010 04:53 AM

Quote:

Originally Posted by DorsetBlue (Post 3858788)
Is there anyway to prevent a user from being able to logon at a machine (Terminal and XWindows) but allow that user to logon remotely using SSH?

This user is for remote capture of logs only - on a private network (no internet access).


There is.

You have to review and edit this file

Code:

/etc/security/access.conf
accordingly


examples are here

http://linux.die.net/man/5/access.conf


All times are GMT -5. The time now is 08:13 AM.