DevOpsTechnology

Creating And Importing IAM User to Opsworks

Opsworks is a wonderful SaaS tool provided by AWS which off-loads human driven tasks like managing own chef server, installing agents on each server, creating ssh user(s) even on run-time for the servers and various other benefits. In this blog an IAM User will be created without any CLI credentials, it will be registered with […]

AWSTechnology

Setting up restricted remote SFTP server

This blog post refers to a use case I came across recently wherein, a few users had to remotely log into the server using SFTP. These users should be restricted to perform read/write operation only in their home directory and only from office network i.e the public IP address(es), their office network is fabricated upon. […]

AWSTechnology

Puppet manifests to change pem key of running ec2 instances

This blog is in continuation to our previous blog. The focus of this blog is to enable AWS professionals to change pem of running servers or to add a new user with sudo privileges to an EC2 server farm using Puppet. Similar use case of performing the same task using CHEF has been discussed here. […]

AWS

Continuing with Boto: Find security group having port 22 open for all

Consider a use case where in any team members have opened port 22 for 0.0.0.0/0 inside an EC2 security group and forgot, which is a big security concern for the Instances. So I have written a script using python boto library which scans all the security groups of running / stopped instances and sends an email […]

AWS

ClusterSSH: Control Multiple SSH Sessions

ClusterSSH is a group SSH administration tool. It is used to control number of xterm windows via single Administration console to allow commands to run on multiple servers over an SSH connection. Sometimes, you may have chances to enter same command on many servers. To do that, you have to login to each server and […]

AWSDevOps

Change ssh key-pair of Running EC2 Instance

Sometimes we get the requirement to change the key-pair for some security reasons. In this article, we will be changing the key pair of running EC2 instances. Steps: 1. Create a new key pair from AWS Console. 2. Generate Public key from newly created key pair ( Private Key ). 3. Paste the generated public […]

Vikash Jha
Vikash Jha
Read

Grails

Using Ftp with Grails

In one of my Grails project I need to drop files over ftp server. Using JSch one can easily transfer files over sftp. Just follow the below steps. 1. Add the below dependency to Grails project “grails-app/conf/BuildConfig.groovy” file [sourcecode language=”groovy”] dependencies { compile ‘com.jcraft:jsch:0.1.49’ } [/sourcecode] 2. Create a class for adding ftp credentials information. e.g. “FtpCredentail” […]

Technology

Logging to remote MySQL Server using SSH tunneling

Very often, we all need to access a remote database for debugging or any other related stuff. The simplest thing that comes to mind is to take the dump of remote database and bring it to the local and run the application using that data. We can avoid that, if we can connect our local […]

Sachin
Sachin
Read

Technology

byobu: screen sessions in Linux

This post is just to talk about Screen Sessions in Linux (esp. ubuntu) using command “byobu”.   What is Byobu? Byobu is a Japanese term for decorative, multi-panel screens. As an open source project, Byobu is an elegant enhancement of plain GNU Screen.   Where can it be used? You SSH to some remote machine […]

Salil
Salil
Read