How To Diff Two Files With SSH/SCP Using VimDiff
erics, February 3rd, 2015 vimdiff /path/to/file.css scp://yourHost.com//path/to/file.css
|
erics, February 3rd, 2015 vimdiff /path/to/file.css scp://yourHost.com//path/to/file.css
erics, April 15th, 2014 https://github.com/continuent/continuent-puppet-tungsten As user root: vi /root/install.pp
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
$clusterData = { "myServiceNameHere" => { "topology" => "master-slave", "master" => "myDBHostName1", "slaves" => "myDBHostName2", }, } class { 'tungsten' : installSSHKeys => true, installMysql => true, clusterData => $clusterData, replicatorRepo => "stable", installReplicatorSoftware => true, } |
yum install puppet mkdir -p /etc/puppet/modules puppet module install continuent/tungsten puppet apply /root/install.pp
erics, 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 […]
erics, August 3rd, 2011 First use SSH to login as the ec2-user:
|
1 2 3 4 |
ssh -i AWSKeyPair.pem ec2-user@{NewHostName} % sudo su - # |
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 […]
erics, November 3rd, 2010 Edit your /etc/ssh/sshd_config file and add the following lines: [code] KeepAlive yes ClientAliveInterval 30 ClientAliveCountMax 999999 [/code]
erics, 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”.
erics, 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]
erics, 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 […]
erics, November 7th, 2009 vimdiff /path/to/file scp://remotehost//path/to/file
erics, September 27th, 2009 % ssh-keygen -x -f id_dsa > ssh2.pubkey