Hi all,
I have a sftpgroup and I want the user's of this group only can use sftp and nobody can't ssh.
this is my sshd config:
Now, I want to root only can ssh to my server. I add another group named sshgroup and add root to this group, but I cannot ssh yet.
Would you please help me to solve this problem.
Thanks.
I have a sftpgroup and I want the user's of this group only can use sftp and nobody can't ssh.
this is my sshd config:
Code:
Match Group *,!sftpgroup
X11Forwarding no
ChrootDirectory %h
AllowTcpForwarding no
ForceCommand internal-sftp
Now, I want to root only can ssh to my server. I add another group named sshgroup and add root to this group, but I cannot ssh yet.
Would you please help me to solve this problem.
Thanks.