Password-less ssh in 2 Glorious Steps...
Local System - Let’s call it alpha Remote System we don’t want to have to enter passwords for, Let’s call it foxtrot Prep: Harden your existing ssh keys since RSA 1024 sucks. This will create a new 4096 version - ed22519 is actually preferred so you can skip the rsa creation if preferred. me@alpha$ mv ~/.ssh/id_rsa ~/.ssh/id_rsa_legacy me@alpha$ mv ~/.ssh/id_rsa.pub ~/.ssh/id_rsa_legacy.pub Step 1: Generate new keys: me@alpha$ ssh-keygen -t rsa -b 4096 -o -a 100 #RSA version me@alpha$ ssh-keygen -o -a 100 -t ed25519 #Preferred ed25519 version Step 2: Copy the Ed25519 keys to the remote system called foxtrot: ...