Open main menu

CDOT Wiki β

Changes

OPS235 Lab 7 - Fedora17

496 bytes added, 20:15, 15 March 2010
no edit summary
** <code>chmod 700 ~/.ssh</code>
** <code>chmod 600 ~/.ssh/id_dsa*</code>
* The next step is to copy your public key to fedora3 (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 ops235 home directory on the remote hostfedora3.
* The ''':''' is important as it separates the hostname from the path where it is copied to.
* The default location is your the users home directory on the remote host but you can also use an absolute or relative path after the ''':'''* Enter your password to complete the copy.* Now ssh to fedora3 using a password to authenticate.* Once logged in to fedora3 we need to add the public key to your list of authorized_keys* The safest way to do this is to append the contents of <code>id_dsa.pub</code> to the <code>.ssh/authorized_keys</code> file. To do this use the command:** <code>cat ~/id_dsa.pub >> ~/.ssh/authorized_keys</code> You don't want to overwrite the file as it may contain multiple public keys.
9
edits