Editing Generating keys
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
The command: | The command: | ||
<pre> | <pre> | ||
ssh- | ssh-kegen -t dsa | ||
</pre> | </pre> | ||
will generate a DSA key pair that we can use to authenticate ourselves. | will generate a DSA key pair that we can use to authenticate ourselves. | ||
After pressing enter you'll be asked for a file location, with a default name of id_dsa located in your | After pressing enter you'll be asked for a file location, with a default name of id_dsa located in your ~/.ssh/ directory. It's a good idea to give it a useful name (for our purpose, 'pony' will do). You'll also be asked for an optional pass phrase for the key. You can skip this by pressing enter if you like. | ||
You'll now have two files, 'pony' and 'pony.pub' in your | You'll now have two files, 'pony' and 'pony.pub' in your ~/.ssh/ directory: | ||
<pre> | <pre> | ||
Line 18: | Line 14: | ||
</pre> | </pre> | ||
Notice that 'pony.pub' is world readable, but the (private) pony key is only readable by you, the owner | Notice that 'pony.pub' is world readable, but the (private) pony key is only readable by you, the owner. | ||