How To Fix Mouse Scrolls the Command Line History Instead of the Window Buffer in Terminal

Author: , May 23rd, 2023

In the macOS Terminal, my mouse scroll wheel would magically start scrolling the command line history instead of the window buffer scroll bar on the right to show window history. This happened when an SSH session was disconnected or timed out. The fix is to run the reset command.

How To Enable SSH Login From OS X Yosemite 10.10.5 to macOS Ventura 13.3.1

Author: , May 19th, 2023

I was unable to login from my old iMac running Yosemite to my new iMac running Ventura using RSA keys. It turns out that RSA key support was disabled in Ventura. To correct the problem, I added the following two lines to the bottom of BOTH /etc/ssh/ssh_config and /etc/ssh/sshd_config on the Ventura side:

Be […]

How To Fix SSH Permission Denied From macOS Ventura To Amazon Linux

Author: , May 9th, 2023

I have been using RSA SSH keys forever to login to my various AWS EC2 instances. With macOS Ventura 13.3.1 ssh failed with the “Permission Denied” error. Using ssh -vvv, I saw that the RSA key was now being rejected. After much research, I decided to implement new keys on the client (Ventura) side using […]

How To Get rsync To Work With macOS Ventura – Getting Error “Operation not permitted”

Author: , May 5th, 2023

I have a new iMac running macOS Ventura 13.3.1. I tried to rsync some files from another host and got the following error:

In order to get rsync to have access to the hard drive in macOS Ventura, you need to add rsync and other programs to the Full Disk Access panel under Privacy […]

How To Get SSH Logins Working Again In macOS Ventura

Author: , February 24th, 2023

SSH login from older hosts running OS X Yosemite 10.10.5 to macOS Ventura 13.2.1 was not working. SSH failed with a “No hostkey alg” error. To correct the problem, I added the following two lines to the bottom of BOTH /etc/ssh/ssh_config and /etc/ssh/sshd_config on the Ventura side:

Be sure to stop and start Remote […]

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://yourHost.com//path/to/file.css