Archive
Posts
All posts arranged by date, covering macOS, Vim, AI, and learning methods.
This section contains the site’s posts.
If you are not sure where to start, I recommend Start Here. If you already know what you want to read, you can go straight to About.
Port 5000 already in use on Mac: check AirPlay Receiver before killing a process
When a dev server on a Mac prints port 5000 already in use or Address already in use, run lsof first and see what is listening. If it is Control Center, that is usually AirPlay Receiver: change your app port, or turn the receiver off in System Settings. Do not start by killing the system process.
xcrun: invalid active developer path after a macOS update (missing xcrun)
When git, clang, or xcrun on a Mac prints invalid active developer path and missing xcrun, the active developer directory does not contain that tool. Print the path with xcode-select --print-path, then install or update Command Line Tools with the official xcode-select --install. Do not start by deleting the directory.
Operation not permitted in Terminal on Mac: check Privacy settings before chmod
When ls of Downloads, Desktop, or Documents in Terminal on a Mac prints Operation not permitted, the cause is often app privacy access, not a POSIX mode that chmod can fix. Grant Files and Folders or Full Disk Access to the terminal app you are actually using. sudo does not add that app to the list.
ssh-add: Could not open a connection to your authentication agent
When ssh-add prints Could not open a connection to your authentication agent., the OpenSSH tree read for this page has SSH_AUTH_SOCK unset or empty in this process. Error connecting to agent means the variable is set and the Unix-socket connect failed. Print the variable before starting an agent.
Search Console dates that do not line up: a small-site record
Two recorded checks, on 2026-11-20 and 2026-11-23, show Search Console performance dates, the indexing-report date, sitemap last read, and the live URL count on different clocks.
kex_exchange_identification: Connection reset, closed, or "Not allowed at this time"
kex_exchange_identification and the older ssh_exchange_identification mean the SSH banner exchange failed after TCP succeeded: Connection reset by peer, Connection closed by remote host, banner line 0: Not allowed at this time, or Connection timed out during banner exchange. Rerun ssh -v before you change keys or MaxStartups.
WARNING: UNPROTECTED PRIVATE KEY FILE: Permissions are too open (SSH on a Mac)
When OpenSSH prints WARNING: UNPROTECTED PRIVATE KEY FILE, “Permissions … are too open”, and “This private key will be ignored”, it ignores that private key. Read the path with ls -l, then chmod 600 the file named in the warning.
Received disconnect: Too many authentication failures: the client offered too many keys
When ssh prints “Too many authentication failures” or “Received disconnect: Too many authentication failures”, the client may have offered too many keys on that connection. Read ssh-add -l and ssh -v, then set IdentitiesOnly yes on the one IdentityFile you mean.
ssh-add: illegal option -- apple-use-keychain, or Bad configuration option: UseKeychain, on a Mac
On a Mac, ssh-add: illegal option -- apple-use-keychain and Bad configuration option: UseKeychain usually mean the ssh on PATH is not Apple’s. Run which -a ssh ssh-add, then add the key with /usr/bin/ssh-add.
command not found after npm install -g: your terminal and the AI agent are using different Node installs
On a Mac, command not found after npm install -g often means the binary landed in one Node prefix while the failing shell uses another. In that shell, check which and npm prefix -g before you reinstall.