Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to secure SSH/SSHD?
02-25-2011, 02:48 PM,
Post: #1
How to secure SSH/SSHD?
Hi,

I heard that the most common way for a linux machine to be hacked is through SSH/SSHD. How can I secure my SSH using keys?

Quote this message in a reply
02-26-2011, 08:39 AM,
Post: #2
RE: How to secure SSH/SSHD?
(02-25-2011, 02:48 PM)DXMP Wrote:  Hi,

I heard that the most common way for a linux machine to be hacked is through SSH/SSHD. How can I secure my SSH using keys?

1. Change your default SSH Port

2. Generate a SSH keygen: http://linuxproblem.org/art_9.html

3. Disable Password authorization(Warning, First generate a keygen, If you can't connect to SSH then don't try to disable password authorization)

Code:
nano /etc/ssh/sshd_config
and change
Quote:#PermitRootLogin yes
to
Code:
PermitRootLogin no

Now, Restart sshd
Code:
/etc/init.d/sshd restart


4. You can also find some tutorials on google

Kunnu (Administrator)
Dewlance.com - Best Web Hosting

Create a Ticket
Quote this message in a reply
Thread Search Tool


Forum Jump: