Saturday, January 17, 2015

Required ports for Consul to work properly

What was not clear from the consul docs HERE, ports required to be open on the server. Here is the list of errors seen - 
Error joining the cluster: dial tcp 192.168.59.18:8301: i/o timeout
2015/01/14 23:55:50 [ERR] agent: failed to sync remote state: rpc error: failed to get conn: dial tcp 192.168.59.18:8300: i/o timeout
Ports the consul requires are
  • 8301 - RPC
  • 8300 - TCP
  • 8500 - HTTP
  • 8600 - DNS (domain lookup)

SSH important options and there meaning

These are important to me, in the following cases. (Disclaimer, there are potential security loopholes in using the suggestion as given)
These are options set on source (from where you are ssh’ing)
  • Host *
  • ForwardAgent yes (forwarding ssh-agent, so that you do not need to distribute your private keys everywhere)
  • CheckHostIP yes (probably good to have for security)
  • StrictHostKeyChecking no (disables security attribute associated with keys to hosts)
  • TCPKeepAlive yes (very handy in shaky internets)
  • #AllowTcpForwarding yes (this is only required when you use ssh as a socks proxy)
  • UserKnownHostsFile /dev/null (security threat, handy when you have a cloud env, where the same IP are assigned to new setups)
  • IdentitiesOnly yes (very handy, when you have a large no. of keys loaded into your ssh-agent and occasionally you have to log into a server with another key)

Tuesday, January 6, 2015

Thanjavur - The Great 'Raja Raja Chola I' built this enormous temple exactly 1004 years ago!

Thanjavur!!!

Taken from wikipedia, The name came from the killing of daemon called Tanjan by 'Neelamegha Perumal' a form of Vishnu, thus Thanjavur!

Brihadeshwar Temple  is one of the largest, temples in India, built by The king 'Raja Raja Chola I' in the years 1003 tp 1010 AD.

Amazing place and amazing food. The drive was even better, took the Bangalore -> Salem -> Namakkal -> Karur -> Trichy -> Thanjavur route.

Stayed at Abbi's Inn

Here are some pictures from the trip.












List directories via 'ls -d' - surprised me

List directories via 'ls -d' - surprised me This was one of those feelings where I was left surprised with the humble linux comm...