Home     About Us     RSSRSS

Archives: Debian


April 2, 2016 by @HKw@! | No Comments | Filed in centos, Debian, Fedora, Linux, RedHat, Ubuntu

When i transfer my private key file to my new Mac OS X, i got an error message below:-

lims-air:~ techkaki$ ssh techkaki@ns1.test.my
Permissions 0755 for ‘/Users/techkaki/.ssh/id_rsa’ are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /Users/techkaki/.ssh/id_rsa
techkaki@ns1.test.my’s password:

If you are getting this error then you probably reset the permissions on your hidden .ssh directory in your user folder.

So, the solution for this is, make that file(id_rsa) readable or writable only for the owner with private key. Below is the command

sudo chmod 600 ~/.ssh/id_rsa

After change the permission, my problem is solved.


How to do DNS lookup using Dig Command

April 16, 2015 by @HKw@! | No Comments | Filed in centos, Debian, Fedora, Linux, Mac OS X, Networking, RedHat, Ubuntu

Dig command is a command line tool use for querying DNS nameservers for information about host addresses, mail exchanges, nameservers, and related information. This tool is available on any Linux (unix) or Mac OS X operating system.

Example of using Dig Command

munkwais-MacBook-Pro:~ munkwai$ dig www.google.com

; <<>> DiG 9.8.3-P1 <<>> www.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32350
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0

;www.google.com. IN A

www.google.com. 299 IN A
www.google.com. 299 IN A
www.google.com. 299 IN A
www.google.com. 299 IN A
www.google.com. 299 IN A

;; Query time: 44 msec
;; WHEN: Thu Apr 16 04:29:00 2015
;; MSG SIZE rcvd: 112


How to gracefully restarting the Apache httpd daemon

June 4, 2013 by @HKw@! | No Comments | Filed in Apache, centos, Debian, Fedora, Linux, Open Source, RedHat, Ubuntu

ApacheToday i received an email from our customer said that they do not know how to restart the Apache Web Server graceful. Restarting Apache Web Server also known as gracefully restarting the Apache httpd daemon.

Gracefully restarting httpd daemon will ensures that existing processes are allowed to finish serving the current page. Besides, it will reduce the chance of disrupting a user’s browsing experience.

How do i gracefully restart Apache Web Server?

To gracefully restart Apache web server. Please enter following command as the root user:-

Under Debian / Ubuntu Linux

apache2ctl graceful

Under RedHat / Centos / Fedora Linux

apachectl -k graceful