6
votes
5answers
10k views

How to generate a public/private key (UNIX)

Can some one please tell me, for using SSH, why does a host also need to have a public and private key? And how can I generate a public/private key pair for myself?