Advertisement
Home arrow Linux Guide
Linux Guide
Changing the SSH port on cPanel Servers
Written by wiredgorilla   
Thursday, 20 May 2010

To change the SSH port number login as root, and edit /etc/ssh/sshd_config

Find the line that says Port 22 and change 22 to any number between 1024->65535 (above 30000 is best) and save the file.

Once done, run:

/etc/init.d/sshd restart

Now start a new SSH session (don’t close your existing one), to make sure that you can get in.

 
Fix corrupted RPM database on CentOS 5
Written by wiredgorilla   
Wednesday, 28 October 2009

If rpm / yum command hangs during operations or you see error messages - it means your rpm database corrupted. /var/lib/rpm/ stores rpm database just delete the same and rebuild rpm database:

Command to rebuild rpm database

rm -f /var/lib/rpm/__db*
rpm --rebuilddb -v -v

 

Read rpm / yum man pages for more information

 
How can I repair corrupt MySQL tables?
Written by wiredgorilla   
Friday, 12 September 2008
How can I repair corrupt MySQL tables?
Every so often, MySQL tables have a way of corrupting themselves. MySQL offers a quick and painless method of repairing those tables.
Read more...
 
Changing hostname and IP on a CentOS server
Written by wiredgorilla   
Friday, 12 September 2008

OK, so you are ready to move your server to a different datacenter with a different IP C class.

Here are a few things you need to change

Last Updated ( Friday, 30 January 2009 )
Read more...
 
CentOS - what happened to netconfig in 5.1
Written by wiredgorilla   
Wednesday, 10 September 2008

For whatever reason CentOS decided to drop netconfig and renamed it to

system-config-network

 

 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Results 1 - 9 of 324