How To Install Continuent Tungsten Replicator Using Puppet on AWS

Author: , April 15th, 2014

https://github.com/continuent/continuent-puppet-tungsten As user root: vi /root/install.pp

yum install puppet mkdir -p /etc/puppet/modules puppet module install continuent/tungsten puppet apply /root/install.pp

How To Keep SSH Alive In MacOSX Lion Terminal Sessions

Author: , May 24th, 2012

Apple’s 10.7 Lion, is NOT my favorite iteration of MacOSX. They continue to make the OS more Windows-like, which means they have started down that slippery slope… In Snow Leopard, I could have my ssh sessions running for weeks. In Lion, the ssh sessions time out with nasty errors, including “Write failed: Broken pipe”. After […]

How To Get root Access To An AWS Instance At Launch

Author: , August 3rd, 2011

First use SSH to login as the ec2-user:

erics@zeus:/Users/erics # ssh -i foo.pem ec2-user@thehost.foo Last login: Tue Nov 19 20:28:19 2013 from foo.bar __| __|_ ) _| ( / Amazon Linux AMI ___|\___|___| https://aws.amazon.com/amazon-linux-ami/2013.09-release-notes/ No packages needed for security; 7 packages available Run “sudo yum update” to apply all updates. [ec2-user@xyz ~]$ sudo su […]

How To Keep SSH Sessions Alive

Author: , November 3rd, 2010

Edit your /etc/ssh/sshd_config file and add the following lines: [code] KeepAlive yes ClientAliveInterval 30 ClientAliveCountMax 999999 [/code]

How To Configure SSHD To Listen On Multiple IP Addresses Only

Author: , August 26th, 2010

Simply specify one or more ListenAddress directives… Edit “/etc/ssh/sshd_config” and add one line per desired IP address: [code] ListenAddress 10.1.1.7 ListenAddress 172.16.1.82 ListenAddress 192.168.1.146 [/code] Then run “/etc/rc.d/sshd restart”.

How To Sync the Date and Time Between Servers

Author: , July 29th, 2010

Extremely simple way to set the date and time the same as another server: (Requires SSH access to the server that has the time you want to copy; does NOT have to be root access) [code]root@host# date ssh user@timehost date "+%Y%m%d%H%M.%S"[/code]

How to Troubleshoot SSH on MacOSX

Author: , May 1st, 2010

I had some odd issues with slow login via ssh to my host. I looked in Console.app, but was not able to find anything relevant. So here is what I did: 1. System Preferences -> Sharing, Unchecked “Remote Login” 2. In Terminal, as root, ran /usr/sbin/sshd -ddd -e (3 d’s for debug level 3, -e […]

How to diff remote files interactively with vim and ssh

Author: , November 7th, 2009

vimdiff /path/to/file scp://remotehost//path/to/file

How to Convert an SSH Public Key to an SSH2-compatible Format

Author: , September 27th, 2009

% ssh-keygen -x -f id_dsa > ssh2.pubkey