• Connect to remote system where you will place your key (we do this to auto-generate the .ssh files/folder for both computers):
  • Click yes if asked to add remote key.
  • ssh remoteuser@remotehost
  • Password: *******
  • exit
  • Create your ssh key:
  • ssh-keygen -t dsa
  • Enter file in which to save the key: (the default will by ~/.ssh/id_dsa, just click enter.)
  • Make sure you use a good pass-phrase... not a simple password.
  • Copy your public key to the remote system:
  • scp -p id_dsa.pub remoteuser@remotehost: (don't forget the collin at the end.)
  • Password: *******
  • Log on to the remote system to install your key:
  • ssh remoteuser@remotehost
  • Password: *****
  • Add your key to the authorized key list
  • cat id_dsa.pub >> ~/.ssh/authorized_keys
  • check to make sure the authorized_keys file is chmod 600
  • rm id_dsa.pub
  • exit
  • Log on to the remote server... only this time with public-key authentication:
  • ssh remoteuser@remotehost
  • Enter passphrase for key '/home/smith/.ssh/id_dsa: ********
  • To setup the ssh authorization agent (who will enter your pass-phrase for you after the first time you type it) do the following:
  • yum install ksshaskpass
  • then add a new shell script to ~/.kde/Autostart, call it start-ssh_add.sh
  • #!/bin/bash

    export SSH_ASKPASS=/usr/lib64/ssh/ksshaskpass

    /usr/bin/ssh-add

    • chmod 755 ~/.kde/Autostart/start-ssh_add.sh