Saturday, August 22, 2015

How to set security ssh on linux


[root@App1 ~]# vi /etc/ssh/sshd_config
### insert the command to apply only monitor, survey, oam user OS can ssh from anywhere, others ### cannot ssh from other machine
AllowUsers monitor survey oam

Now, Restart sshd
[root@App1 ~]# /etc/init.d/sshd restart
Stopping sshd:                                             [  OK  ]
Starting sshd:                                             [  OK  ]
[root@App1 ~]#

Share this

0 Comment to "How to set security ssh on linux"

Post a Comment