Commit Graph

30 Commits

Author SHA1 Message Date
Scott Ullrich
426f300c72 Check for key existance before clearing out 2005-07-24 21:38:46 +00:00
Scott Ullrich
0ae71d819b Mount config rw before generating keys 2005-07-24 21:38:12 +00:00
Scott Ullrich
02facbd033 Do not mount configuration ro after writing configuration with write_config() if we're booting 2005-07-24 21:21:26 +00:00
Scott Ullrich
0a1e19604e Make sure config is mounted rw 2005-07-24 20:51:01 +00:00
Scott Ullrich
3ea05002bf Do not perform mount operations 2005-07-24 20:34:55 +00:00
Scott Ullrich
c5a9b876cf Use correct path. DOH! 2005-07-17 20:16:36 +00:00
Scott Ullrich
7e6d816a93 Use correct path. DOH! 2005-07-17 20:16:00 +00:00
Scott Ullrich
c3290534cb Do not check on config.xml items right now. 2005-07-17 20:10:52 +00:00
Scott Ullrich
5858cbdb08 Do not stat a file if it doesn't exist 2005-07-17 20:00:01 +00:00
Scott Ullrich
03b42caaf5 Make sure ak key is cleared 2005-07-17 19:45:23 +00:00
Scott Ullrich
746b5ee2e2 If any of the /etc/ssh/ files are corrupted then remove them so they will be forced to regenerate. 2005-07-17 19:43:11 +00:00
Scott Ullrich
850b71ec84 Make sure config.xml doesn't hold ssh keys for now 2005-07-17 19:30:07 +00:00
Scott Ullrich
21b20aae63 Disable ssh key saving for now. 2005-07-10 20:10:07 +00:00
Scott Ullrich
6b21d1edb8 Disable ssh key saving for now. 2005-07-10 20:09:06 +00:00
Scott Ullrich
0afcd529ea Operating on argv[0] and [1] 2005-07-09 21:55:41 +00:00
Scott Ullrich
40240d9b42 exit after stop sync 2005-07-09 19:39:25 +00:00
Scott Ullrich
0a4869c539 Sync /root/.authorized_keys on boot 2005-07-09 19:38:58 +00:00
Scott Ullrich
3b18f1753b On shutdown call /etc/sshd and alert we're stopping so it can compare /root/.authorized_keys with the config.xml version 2005-07-09 19:35:49 +00:00
Scott Ullrich
3e3fe496be Use system("/usr/sbin/sshd"); for platform compatibility 2005-07-09 19:09:49 +00:00
Scott Ullrich
045c573b83 Saving and restoring is fixed. Reenable. 2005-07-09 18:18:47 +00:00
Scott Ullrich
abafa16bca Turn off SSH key saving and restoring until bugs are fixed. 2005-07-09 18:13:34 +00:00
Scott Ullrich
5fa404d49e Don't forget to write out ssh keys to config.xml 2005-07-09 17:50:05 +00:00
Scott Ullrich
c233882863 If keys exist and they are not stored in config.xml, remove the keys and regen and then store them in config.xml 2005-07-09 17:43:28 +00:00
Scott Ullrich
61fb3da06a use /etc/rc.d/sshd start 2005-07-08 23:29:25 +00:00
Scott Ullrich
efa761f629 base64 encode the values when saving and restoring 2005-07-08 23:24:58 +00:00
Scott Ullrich
9e3fc88e91 * Store SSH keys in config.xml.
* Restore on bootup
2005-07-08 21:16:59 +00:00
Scott Ullrich
697a899165 Eliminate whitespace. 2005-03-31 04:47:38 +00:00
Scott Ullrich
b2981d7a99 No need for duplicate starting ssh messages 2005-03-12 21:06:37 +00:00
Bill Marquette
128f6a3ec5 Let user SSH in as admin instead of root only (requested for consistency)
Full path to sshd
2005-03-12 03:03:07 +00:00
Scott Ullrich
5b23774500 Initial revision 2004-11-07 03:06:49 +00:00