The reason I need to be perlnewbie is because I need to set up ssh-keygen on the host server so it does not ask for a password.
Therefore, I need to know what user is going to be logging in (and what user the script would be running as) . So the connection would go from the server running the CGI script to the remote host using that user.