Archive for 'Unix'

Though this warning looks pretty much scary but the reason for this is very much simple and the solution as well.

Q. When did you get this error ?

A. The possible reasons for getting this error are:

  • You have re-installed you system and trying to ssh to the newly installed system.
  • You have assigned the IP address of one system to another system and trying to ssh.
  • You system is dual boot with different ssh keys in both flavors of linux.
  • You are using an IP for load balancing and trying to ssh to the same IP.
  • You generated new ssh keys for your system. (Read this article for the re-generation of the host keys: Generate SSH host keys)
  • Someone trying to do some nasty things, or you can say man-in-the-middle attack.

There could be lots of solution for this problem, which are explained below:

Read the complete article »

How To: Change time/date in linux from Command Prompt

In every system, there are two clocks which comes into action while setting the time, one is hardware clock and the other is linux (OS) clock. The hardware clock determines the system clock on system boot. While the system is running, changes to one of these doesn't affect the other. Normally you can follow any procedure, like first update one clock and then sync it with the other but it is always advised to first update the hardware clock and then let the linux clock sync it with it at the next reboot. Changing the system clock by using the date program on a running system could cause date discontinuities and consequently problems. Down here, I will be discussing both ways.

Read the complete article »

How To: Change Timezone in Linux/Unix

In a linux/unix system, the time is the number of seconds elapsed since midnight UTC on the morning of January 1, 1970, not counting leap seconds.

There are different ways and procedures to change timezones in different flavors of linux/unix (which i will explain later in this HowTo) but universla procedure to do it in all flavors is explained below:

Read the complete article »

FreeBSD: Change date/time from command line

How can i change/update date/time/timezone in FreeBSD from command line?

Changing date/time in FreeBSD operating system is not much different from what we use in normal linux operating systems which i had explained in this howto: Change date/time in linux from command prompt.

To display the date:

Simply type the date command to display the current date:

# date

Read the complete article »

Tech Tip: Update Hardware Clock from Command Line

In every system, there are two clocks which comes into action while setting the time, one is hardware clock and the other is linux (OS) clock. The hardware clock determines the system clock on system boot. While the system is running, changes to one of these doesn’t affect the other. Normally you can follow any procedure, like first update one …

Read the complete article »