Changeset - 29fcf5f87119
[Not reviewed]
default
0 1 0
ethanzonca - 16 years ago 2009-07-30 16:20:11

Assuming SYSCONFDIR for setup_rsa in initial deployment
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/server/slavefuncs.c
Show inline comments
 
@@ -29,7 +29,6 @@
 
#include <stdlib.h> /*< malloc(), free() */
 

	
 
int ssh_keygen(){
 
	// Interesting issue, if they try to register twice, it will be interactive, asking whether or not to overwrite the current one.
 
	// distren.id_rsa and distren.id_rsa.pub are now generated in SYSCONFDIR (etc)
 
	fprintf(stderr, "We're generating your SSH key. Please be patient.\n");
 
	char *command = "ssh-keygen"; // append .exe if win32?
 
@@ -62,7 +61,7 @@ int register_user(char *username, char *
 
      "ssh",
 
      "distren_setup@protofusion.org",
 
      "-i",
 
      "setup.rsa", // default distributed key, account can only create users.
 
      SYSCONFDIR "setup_rsa", // default distributed key, account can only create users.
 
      "-p",
 
      "23",
 
      "sudo /usr/sbin/useradd",
0 comments (0 inline, 0 general)