1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-11-27 17:58:13 +00:00
Commit Graph

24 Commits

Author SHA1 Message Date
Greg Alexander
73d4406ee1 automatically restart sshd if the system kills it (or it crashes). but
don't restart it if it dies twice within 10 seconds.
only access sshd_pid (et al) from a few select spots now, with proper
synchronization.
2016-07-04 20:37:54 -04:00
Greg Alexander
a916ac5c08 add 'buffersu' program to wrap rsync and make sure there is no wedging
when SuperSU is combined with rsync
2015-06-20 13:52:34 -04:00
Greg Alexander
7f0a8a63c0 build scp as a separate executable 2014-12-21 14:58:24 -05:00
Greg Alexander
93760bfb7b intercept attempts to execute "scp", and redirect them to the builtin scp 2014-12-20 20:06:02 -05:00
Greg Alexander
253c468b3a close all the android system fds when starting the dropbear server 2014-12-20 15:50:46 -05:00
Greg Alexander
3112a7ecb3 remove explicit "0.0.0.0" specification on -p option because it turns out
the "tcp6" listener that results accepts ipv4 after all
2014-12-17 22:52:52 -05:00
Greg Alexander
8a1bc2c4e0 made the JNI methods static because they didn't use this anyways 2014-12-17 22:48:38 -05:00
Greg Alexander
5df0610f5c implement the extra dropbear commandline options 2014-12-17 22:46:04 -05:00
Greg Alexander
1d79555a2f todo 2014-12-17 08:58:21 -05:00
Greg Alexander
5902ab0952 tell dropbear not to fork into the background, because we've already
forked before calling it...
2014-12-16 18:49:00 -05:00
Greg Alexander
6d872af030 listen to "0.0.0.0:port" because otherwise it seems to default to ipv6 (??) 2014-12-16 17:56:47 -05:00
Greg Alexander
9ea9717624 add -R for DROPBEAR_DELAY_HOSTKEY 2014-12-16 17:51:24 -05:00
Greg Alexander
8a8b4c3acb fix typo hiding argv 2014-12-16 17:31:14 -05:00
Greg Alexander
3f721ae740 add conf_path_file() function to generate "/sdcard/ssh/foo" style filenames 2014-12-16 17:27:43 -05:00
Greg Alexander
0c939b5b24 a little note in the .err file to indicate what's happening... 2014-12-16 17:14:01 -05:00
Greg Alexander
58eefb02b9 add something to wait for the forked process to die, so it doesn't become
a zombie
2014-12-16 17:07:26 -05:00
Greg Alexander
b88f4f1db0 ack, stupid typo 2014-12-16 16:52:54 -05:00
Greg Alexander
f0dcb8b2c0 pass '-p <portno>' on the virtual commandline 2014-12-16 16:34:10 -05:00
Greg Alexander
447ffa0b8f stderr output should now hopefully go to /sdcard/ssh/dropbear.err instead
of the bit bucket
2014-12-16 16:24:01 -05:00
Greg Alexander
bfa3c99dc0 actually call main... 2014-12-16 16:13:04 -05:00
Greg Alexander
a9ca75accc communicate the preferences to the C code 2014-12-16 15:50:30 -05:00
Greg Alexander
9cac7ed132 make sshd_pid static 2014-12-16 11:19:26 -05:00
Greg Alexander
e1d43c3208 first draft of rough JNI interface 2014-12-16 10:34:10 -05:00
Greg Alexander
762d44b1a4 notes about what the jni interface will need to be like.. 2014-12-14 16:20:49 -05:00