Commit Graph

47 Commits

Author SHA1 Message Date
Seth Mos
5b7eb87cad Reworked sshd script, restarts sshd if we have one and allows running of
ssh on alternate port.
2005-10-13 20:43:27 +00:00
Scott Ullrich
f6661aed44 * Done -> done (for bootup consistency)
* Error -> error
2005-10-13 01:08:37 +00:00
Scott Ullrich
823b7b0fae Silence read-only error 2005-10-11 21:40:07 +00:00
Scott Ullrich
b15e2ed405 Exit when ssh is disabled 2005-09-23 05:06:23 +00:00
Scott Ullrich
dcb6476880 Do not allow sshd script to run multiple times concurrently. 2005-09-22 20:14:46 +00:00
Scott Ullrich
2d195c3ff6 Use mwexec 2005-09-22 19:19:26 +00:00
Scott Ullrich
cc6e38fe4f Do not hijack stderr 2005-09-22 18:53:19 +00:00
Scott Ullrich
fdfc687cdc File an alert when SSHD didn't start correctly 2005-09-19 01:17:40 +00:00
Scott Ullrich
017cd1ad4d Note when sshd startup failure 2005-09-19 01:16:39 +00:00
Scott Ullrich
0f953a29d4 * Create a /etc/keys_generating file incase a reboot occurs we know to start over.
* Cleanup some starting text
* Add a blurb when we're generating keys to make startup text prettier
2005-09-19 01:16:14 +00:00
Scott Ullrich
e133837530 Create SSH keys with a nice of 20 2005-09-19 01:00:58 +00:00
Colin Smith
7822d9660c return_filename_as_string -> file_get_contents 2005-08-03 07:15:38 +00:00
Scott Ullrich
09982081be newline before running keygen 2005-08-03 00:07:58 +00:00
Scott Ullrich
668b7b2ea0 Correctly start SSHD 2005-08-01 23:12:07 +00:00
Scott Ullrich
59d09874f9 Use enablesshd tag 2005-08-01 23:06:18 +00:00
Scott Ullrich
e4662fc5aa Enable SSHD on upgrade 2005-07-31 01:29:29 +00:00
Scott Ullrich
36aaefff61 Allow SSH service to be disabled / enabled. 2005-07-31 01:15:32 +00:00
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