Home     About Us     RSSRSS

Archives: RedHat

WARNING: UNPROTECTED PRIVATE KEY FILE!

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
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
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.

 

bash: rsync: command not found

October 16, 2015 by @HKw@! | No Comments | Filed in centos, Fedora, Linux, RedHat

I was trying to rsync files from my Mac to a CentOS VM, and was getting below error:-

rsync command not found

The root cause of getting above error message is the remote machine is not installed rsync command.

To solve this issue, just to install the rsync on the remote machine.

install rsync

That’s it!

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

;; QUESTION SECTION:
;www.google.com. IN A

;; ANSWER SECTION:
www.google.com. 299 IN A 173.194.126.80
www.google.com. 299 IN A 173.194.126.81
www.google.com. 299 IN A 173.194.126.83
www.google.com. 299 IN A 173.194.126.82
www.google.com. 299 IN A 173.194.126.84

;; Query time: 44 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Thu Apr 16 04:29:00 2015
;; MSG SIZE rcvd: 112

(more…)