hi,
I want to know how to avoid access a computer through ssh ? Is there is a possible way ?
Thanks.
How to avoid access computer through ssh
Re: How to avoid access computer through ssh
You can disable Shell access but it is not a good idea at all. What we usually do is RESTRICT SSH access to some accounts. You can use the following command to avoid access via SSH for a given user account.
The common problem that users expereince is hacking the root account using brute force attacks over SSH. The solution is to disable root access to SSH and make a user and set it to access SSH. See How to secure your system from hacking over SSH.
Code: Select all
# chsh -s /sbin/nologin {username}
Re: How to avoid access computer through ssh
Thanx for ur help.Saman wrote:You can disable Shell access but it is not a good idea at all. What we usually do is RESTRICT SSH access to some accounts. You can use the following command to avoid access via SSH for a given user account.
The common problem that users expereince is hacking the root account using brute force attacks over SSH. The solution is to disable root access to SSH and make a user and set it to access SSH. See How to secure your system from hacking over SSH.Code: Select all
# chsh -s /sbin/nologin {username}