Open main menu

CDOT Wiki β

Changes

OPS235 Lab 7 - Fedora17

1,743 bytes added, 20:07, 15 March 2010
no edit summary
93:58:20:56:72:d7:bd:14:86:9f:42:aa:82:3d:f8:e5 user1@fedora2
</pre>
* After generating the keys it prompts you for the location to save the keys. The default is <code>~/.ssh</code> Your private key will be saved as <code>id_dsa</code> and your public key will be saved as <code>id_dsa.pub</code>
{{Admon/tip | Tip: | You will then be prompted for a passphrase. The passphrase must be entered in order to use your private key. Passphrases are more secure than passwords and should be lengthy, hard to guess and easy to remember. For example one passphrase that meets this criteria might be "seneca students like fish at 4:00am". Avoid famous phrases such as "to be or not to be" as they are easy to guess. It is possible to leave the passphrase blank but this is dangerous. It means that if a hacker were able to get into your account they could then use your private key to access other systems you use.}}
* Once your keys have been saved you should check to make sure the permissions of the <code>.ssh</code> directory and your key files are secure.
* Use the following commands to secure them:
** <code>chmod 700 ~/.ssh</code>
** <code>chmod 600 ~/.ssh/id_dsa*</code>
* The next step is to copy your public key to the remote host. You can use the scp command to do it.
* <code>scp</code> (secure copy) is used to copy files between hosts over the ssh protocol. The files are sent over an encrypted channel as is all ssh traffic.
* Issue the command:
** <code>scp ~/.ssh/id_dsa.pub ops235@fedora3:</code>
* This will copy your public key to your home directory on the remote host.
* The ''':''' is important as it separates the hostname from the path where it is copied to.
* The default location is your home directory on the remote host but you can also use an absolute or relative path after the ''':'''
9
edits