
How to Change a Git Remote URL From HTTPS to SSH Easily
Change a Git remote URL from HTTPS to SSH with git remote set-url: find the SSH address, test the connection, and fix credential and key problems.
SSH, curl, DNS, ports and HTTP APIs from the terminal, for when a connection or a request will not behave.

Change a Git remote URL from HTTPS to SSH with git remote set-url: find the SSH address, test the connection, and fix credential and key problems.

Extract data from kubectl output with jsonpath and jq: single fields, lists, filters, base64 secrets, restarts and image versions, with quoting that survives.

Query a GraphQL API from the command line with curl, jq and gh api graphql: build JSON safely, use variables, introspect, paginate and check errors.

Use an OpenAPI spec from the command line: list endpoints with jq, lint with Redocly, call APIs with restish, mock with Prism and diff versions.

Explore unknown JSON from an API with gron and jq: flatten to greppable paths, find a value, list all paths with jq, then extract exactly what you need.

Set up SSH keys for GitHub and GitLab: generate an Ed25519 key, add it to the agent, upload the public key, test the connection, and use one key per host.

API errors 401 versus 403: authentication versus authorisation, headers and bodies to read, how a script should react and when not to retry.

Compare jq, gron and jless for exploring JSON: querying, grep-able paths and an interactive viewer, with examples on the same document and when to use each.

Debug SSH authentication in scripts: BatchMode, verbose output, agent and key selection, known_hosts, server logs and what differs from your terminal.

Fix SSH Too many authentication failures: the agent offers every key, MaxAuthTries runs out, IdentitiesOnly and IdentityFile fix it, and how to see the order.

Handle the SSH warning about a changed host identification: legitimate causes, verifying the new key, and removing the old entry with ssh-keygen -R.

Compare curl, HTTPie and xh for API work: JSON request syntax, output formatting, sessions, speed, availability and which fits scripts.
One email when a new post is published. No spam.