Create Public/Private key pairs and automate SSH login

PHOTO EMBED

Fri Mar 03 2023 08:13:54 GMT+0000 (Coordinated Universal Time)

Saved by @swina #ssh #linux #identity

#create an identity fil name {mycert} as per your need
ssh-keygen -f ~/.ssh/mycert -t ed25519

#/.ssh/config
Host myserver
Hostname {hostname}
IdentityFile ~/.ssh/{identityFile}
User {username}

#from the console
ssh myserver
content_copyCOPY