Page 1 of 1
How to avoid access computer through ssh
Posted: Tue Jan 25, 2011 1:04 pm
by ARDS
hi,
I want to know how to avoid access a computer through ssh ? Is there is a possible way ?
Thanks.
Re: How to avoid access computer through ssh
Posted: Tue Jan 25, 2011 4:19 pm
by Saman
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.
Code: Select all
# chsh -s /sbin/nologin {username}
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.
Re: How to avoid access computer through ssh
Posted: Tue Jan 25, 2011 9:28 pm
by ARDS
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.
Code: Select all
# chsh -s /sbin/nologin {username}
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.
Thanx for ur help.
