System Information
กก
System Information

University of Virginia

root@cs.virginia.edu Department of Computer Science


Viruses and Worms

Step 1: make yourself a pubkey/privkey pair:

 $ ssh-keygen -t dsa

Step 2: rename the pubkey to authorized_keys:

 $ cd ~/.ssh
 $ mv id_dsa.pub authorized_keys

Step 3: scp the authorized_keys file into ~/.ssh/ on all machines you want to be able to connect to.

Step 4: run the ssh-agent and load your privkey into it.  Use the following script, which is called "sshrun", to do that.

  #!/bin/sh
  eval `ssh-agent`
  ssh-add ~/.ssh/id_dsa
  bash
  ssh-agent -k
  exec clear

Step 5: try sshing into one of the boxes in question.  If it doesn't let you in without a password, it's probably a file or directory permissions problem.  Email root@virginia.edu to have the syslog checked and find out exactly what happened.
กก

[an error occurred while processing this directive]