Skip to content

OpenSSH - Client and Server

Regenerate OpenSSH Server keys

 sudo ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key -N ""
 sudo ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ""
 sudo ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ""

Restart the SSH service - the service name will likely vary depending on the platform:

sudo systemctl restart ssh.service

-OR-

sudo systemctl restart sshd

SSH Agent

Steps to enable SSH Agent upon login.