How To Prevent SSH From Prompting When The Host Is Unknown

Author: , January 26th, 2022

If you are asked “Are you sure you want to continue connecting (yes/no)?” when trying to connect via SSH, then the remote host’s identification key has not yet been stored in your ~/.ssh/known_hosts file. This then requires you to type the full string “yes” in order to proceed because the default value for ssh is […]

How To Use a PEM File With rsync

Author: , January 10th, 2020

Use the -e option like so:

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://

How To Install Continuent Tungsten Replicator Using Puppet on AWS

Author: , April 15th, 2014 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 Last login: Tue Nov 19 20:28:19 2013 from __| __|_ ) _| ( / Amazon Linux AMI ___|\___|___| 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 ListenAddress ListenAddress [/code] Then run “/etc/rc.d/sshd restart”.