Software Development, Agile Practices, Lean Thinking, Music
[ start | index | login or register ]
start > Notes on Performing a SSH Public Key Swap

Notes on Performing a SSH Public Key Swap

Created by brandon. Last edited by brandon, 4 years and 306 days ago. Viewed 245 times. #2
[diff] [history] [edit] [rdf]
labels
attachments
  1. SSH to the remote server and accept the certificate
    1. Example:
      ssh Brandon@myserver
  2. Verify creation of the .ssh directory in your user home directory
    1. Linux Example: ~/.ssh
    2. Windows Example: C:Documents and Settingsmyuserid.ssh
  3. Use ssh-keygen to create a key pair on your client machine
    1. ssh-keygen -t dsa -f $HOME/.ssh/id_dsa -P ''
  4. Copy $HOME/.ssh/id_dsa.pub to the server
    1. $ scp id_dsa.pub  Brandon@myserver:/home/Brandon/.ssh/id_dsa.pub
  5. On the server run the following commands
    1. $ cd $HOME/.ssh
    2. $ cat id_dsa.pub >> $HOME/.ssh/authorized_keys
    3. $ chmod 0600 $HOME/.ssh/authorized_keys
  6. On the client, test the results by connecting to the server via SSH
    1. $ ssh myserver
Reference: >>http://gerodt.homeip.net/blog/gero/2005/10/30/1130698130518.html
Please login to post a comment.
Describe here what your SnipSnap is about!

Configure this box!

  1. Login in
  2. Click here: snipsnap-portlet-2
  3. Edit this box
www.brandonburk.com | Copyright 2008 Brandon N. Burk