When you run csunixmount it asks you for your network password because you are connecting to a USNA server. We can skip the password requirement by using public/private keys (remember SY110?). You generate a key pair in your VM, keep the private key in the VM, and send the public key to the USNA server. Once you do this, future ssh or csunixmount will not prompt for a password.
  1. Make sure on your VM you have csunix mounted (run csunixmount if needed, typing your password for the very last time). To check, run:
    ls ~/csunix/.profile
    If you get the message "No such file or directory", it's not mounted! Fix this before you go on to the next step!
  2. Generate a keypair on your VM (it will go in ~/.ssh/):
    cd ~
    ssh-keygen -t rsa
    When asked where to save the keys, just hit ENTER to accept the default location. When asked for a password, just hit ENTER twice to skip that requirement.
  3. Install the public key on csmidn (the CS Dept. fileserver for mids):
    mkdir -p ~/csunix/.ssh
    touch ~/csunix/.ssh/authorized_keys
    cat ~/.ssh/id_rsa.pub >> ~/csunix/.ssh/authorized_keys
Done! Now you can csunixmount with ease!