How To Force csshX To Tile In Columns

Author: , May 28th, 2019

I use csshX on a daily basis. The default layout on my screen for three nodes is one column with three rows, one per node. This layout is excellent for visual positioning, but does make it harder to read long output. For this purpose, I start csshX using the column quantity specifier -x and I […]

How To Enable Legacy Key Type Support in SSH 7

Author: , December 9th, 2016

Recently I had to launch an Ubuntu instance in AWS because i needed to run alien to convert a .rpm into a .deb package. When I added my SSH keys as usual, I found I was still unable to login. This is the error from the /var/log/auth.log file: Dec 9 16:47:55 localhost sshd[1550]: userauth_pubkey: key […]

How To Diff Two Files With SSH/SCP Using VimDiff

Author: , February 3rd, 2015

vimdiff /path/to/file.css scp://yourHost.com//path/to/file.css

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 […]