This procedure will configure ssh to allow logging into a host without needing a password.
You only have to do this once.
- Ensure that ssh is installed on both hosts.
- On both hosts, create a directory named
- On both hosts, run
- When it asks for a passphrase, just hit the return.
- Go into the
.sshdirectory of your home machine. Among other things, you will see a file named
id_dsa.pub. This is the ssh key you will give to the remote host.
- Log into the remote host, go into the
.sshdirectory and create a text file named
- containing the text from the
id_dsa.pubfile in the
.sshon your home machine.
- Now, leave the remote host and type
- and answer Y to the question of whether this remote host is acceptable.
- After that, you should be able to log into the remote host anytime you want, just by typing
ssh-keygen -t dsa
without any further user interaction (i.e. without entering a password). In addition, such connections will automatically forward X-window sessions, so you can run X-windows applications on the remote host and have all of the GUI appear on your home machine. All communication will be encrypted via high-quality encryption algorithms.