how to generate ssh key in linux

Shell
ssh-keygen -t rsa -b 4096
ssh-keygen -t dsa
ssh-keygen -t ecdsa -b 521
ssh-keygen -t ed25519ssh-keygenssh-keygen -t rsa -C "[email protected]"
Source

Also in Shell: