Alternatives to SSH agent forwarding

SSH has a handy feature called agent forwarding that allows you to log in to a remote server and use the keys loaded into your local ssh-agent as if they were on the server. Unfortunately, this useful feature has a downside: it’s not safe to use on servers you don’t trust. Here are some alternatives.