19 Jun
2003
19 Jun
'03
17:14
On Thursday 19 June 2003 18:32, Togan Muftuoglu wrote:
* Michael Ryan;
on 19 Jun, 2003 wrote: ... This prevents root from logging in - what I want is to prevent everyone OTHER than root logging in.
according man sshd /etc/nologin will do what you want LOGIN PROCESS
When a user successfully logs in, sshd does the following: ... 3. Checks /etc/nologin; if it exists, prints contents and quits (unless root).
A 'man sshd_config' describes the various keywords in sshd_config, and adding ' AllowUsers root' to sshd_config should do the trick, according to the man page. Cheers, Sigfred.