DevOps, Technology

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...

by Vaibhav Gulati
Tag: ssh
01-Aug-2016

AWS, Technology

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. To achieve this,...

by Sharad Aggarwal
Tag: ssh
15-Jul-2015

AWS, Technology

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. So lets start. First of all, a test setup...

by Sharad Aggarwal
Tag: ssh
01-Jun-2015

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 to all stakeholders on...

by Vikash Jha
Tag: ssh
05-May-2015

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 should enter the command...

by Amit Naudiyal
Tag: ssh
31-Mar-2015

AWS, DevOps

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 key ( from Step 2 ) in...

by Vikash Jha
Tag: ssh
19-Aug-2014

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' } ...

by Puneet Behl
Tag: ssh
04-Apr-2013

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 mysql client to a remote machine over a SSH...

by Sachin
Tag: ssh
17-Sep-2012

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 and Run some...

by Salil
Tag: ssh
13-Apr-2011