sawka
|
0a828b7184
|
tightening up server mode, fix bugs, refactor, etc.
|
2022-07-01 17:37:37 -07:00 |
|
sawka
|
f08bd2427e
|
working on remote runtime
|
2022-07-01 14:57:42 -07:00 |
|
sawka
|
60199713e8
|
checkpoint, ensuredefaultsession
|
2022-07-01 14:45:33 -07:00 |
|
sawka
|
b85be3457c
|
checkpoint, working on db calls
|
2022-07-01 14:07:13 -07:00 |
|
sawka
|
643f08e584
|
checkpoint, working on setting up db
|
2022-07-01 12:17:19 -07:00 |
|
sawka
|
02029b3948
|
add schema
|
2022-07-01 10:50:09 -07:00 |
|
sawka
|
3f01ff44c3
|
add migration commands into sh2-server (because migrate cli doesn't ship with sqlite3)
|
2022-07-01 10:48:14 -07:00 |
|
sawka
|
7340d89089
|
get sh2-server compiling again
|
2022-06-30 17:02:19 -07:00 |
|
sawka
|
b6711e7428
|
sanitize packets to be 7-bit ascii without control chars. dont send data/dataend when no rundata present. use os.Executable to locate mshell if running locally. more work on detached mode
|
2022-06-29 14:29:38 -07:00 |
|
sawka
|
4d8841a459
|
use RunPacketBuilder in server mode
|
2022-06-28 22:05:47 -07:00 |
|
sawka
|
c73691ac24
|
move static files from remotefd content to 'rundata'. send all rundata before command start. parse rundata before command start. compatible with detached commands
|
2022-06-28 21:57:30 -07:00 |
|
sawka
|
9054c3cdcc
|
got basic mshell --server functionality working to dispatch multiple commands
|
2022-06-28 19:01:33 -07:00 |
|
sawka
|
1d44afc10e
|
working on server mode. extract fdcontext as interface. create packet writer/reader for mpio. hook up to serverFdContext.
|
2022-06-28 17:20:01 -07:00 |
|
sawka
|
d7eb2526f0
|
refactor RunClientSSHCommandAndWait for server code
|
2022-06-28 15:04:08 -07:00 |
|
sawka
|
9377619e4c
|
write auto-detect logic for arch from uname
|
2022-06-27 23:14:53 -07:00 |
|
sawka
|
afd3bdb315
|
implement install command
|
2022-06-27 22:39:16 -07:00 |
|
sawka
|
26479f59c0
|
pass uname back when mshell isn't found, parse, and give install command
|
2022-06-27 18:42:56 -07:00 |
|
sawka
|
ec4bd5eaa1
|
only send 1 line from pw file, explicitly close pw file descriptor before running command
|
2022-06-27 15:59:14 -07:00 |
|
sawka
|
0f5ee87a76
|
allow mshell to execute local commands
|
2022-06-27 15:10:17 -07:00 |
|
sawka
|
dafe2b5a57
|
simplify argument parsing, hard code common ssh options
|
2022-06-27 14:57:01 -07:00 |
|
sawka
|
6574402691
|
create packetparser type, refactor to use
|
2022-06-27 12:14:07 -07:00 |
|
sawka
|
2a6791bcd6
|
combine sessionid and cmdid into one field ck (commandkey)
|
2022-06-27 12:03:47 -07:00 |
|
sawka
|
1ea8393844
|
update docs with sudo example
|
2022-06-26 01:53:07 -07:00 |
|
sawka
|
222deff0db
|
implement sudo dance allowing passing the sudo password on stdin with sudo -S, and passing a different stdin fd to the command
|
2022-06-26 01:41:58 -07:00 |
|
sawka
|
e8ae01efae
|
check for input termination before init packet
|
2022-06-25 00:33:18 -07:00 |
|
sawka
|
fec7721e32
|
refuse to run with ssh -t or -tt, detect nil runPacket
|
2022-06-25 00:30:41 -07:00 |
|
sawka
|
935500f1f1
|
packet debugging with --debug
|
2022-06-25 00:22:03 -07:00 |
|
sawka
|
43ed95f8fc
|
clean up combining stdout and stderr into packet parsers, combine the channels and close appropriately
|
2022-06-25 00:05:37 -07:00 |
|
sawka
|
e6776bd974
|
checkpoint. transfer binary data as base64. handle cwd. detect open fds. working to transfer data in non-error cases.
|
2022-06-24 23:42:00 -07:00 |
|
sawka
|
5223760a76
|
got basic mshell client working -- still need detectfds and extra files support
|
2022-06-24 13:25:09 -07:00 |
|
sawka
|
0267836376
|
move multiplexed IO to its own package independent of SHExecType (to use in mshell client)
|
2022-06-24 10:24:02 -07:00 |
|
sawka
|
4256ff5231
|
checkpoint -- cleanup and sync optimizations for remote client (basically working). beginning work on local client
|
2022-06-24 00:02:18 -07:00 |
|
sawka
|
52831dc723
|
setup extrafiles using run packet's fds field
|
2022-06-23 18:23:30 -07:00 |
|
sawka
|
29372be4ef
|
working with fdreaders and fdwriters to properly buffer output and not exceed buffer size without acks
|
2022-06-23 17:37:05 -07:00 |
|
sawka
|
c43d3ecc85
|
checkpoint got stdout/stderr data packets working with new remote handler
|
2022-06-23 12:48:45 -07:00 |
|
sawka
|
766d19f1bc
|
checkpoint, switch name from sh2-runner to mshell
|
2022-06-23 10:16:54 -07:00 |
|
sawka
|
eb7ac5136e
|
updates, switch to mshell package
|
2022-06-23 10:15:56 -07:00 |
|
sawka
|
0b172cd689
|
add cdpacket
|
2022-06-23 09:56:54 -07:00 |
|
sawka
|
7d059fe573
|
small change to fix bouncy scroll scolor
|
2022-06-20 22:48:34 -07:00 |
|
sawka
|
4e18bbe44e
|
process comment commands
|
2022-06-20 21:57:23 -07:00 |
|
sawka
|
2c62890912
|
call SetWinsize to set terminal size always for pty
|
2022-06-20 17:51:28 -07:00 |
|
sawka
|
92812bc613
|
update how usedrows is computed
|
2022-06-20 17:49:14 -07:00 |
|
sawka
|
c3626a6547
|
add session history
|
2022-06-20 16:06:37 -07:00 |
|
sawka
|
15c3f2fc10
|
fix getDefaultSession, set foreground color to be not fff
|
2022-06-20 13:19:53 -07:00 |
|
sawka
|
d679ff7cf3
|
mock up a sidebar for scripthaus
|
2022-06-20 13:03:20 -07:00 |
|
sawka
|
315a048f49
|
return username with init packet
|
2022-06-17 18:11:49 -07:00 |
|
sawka
|
859a1611b8
|
get runnerproc args from init packet
|
2022-06-17 18:11:16 -07:00 |
|
sawka
|
365e9c55a2
|
dark theme, follow content when at bottom, date format
|
2022-06-17 17:54:14 -07:00 |
|
sawka
|
0cce8ad503
|
cmd input working
|
2022-06-17 15:32:19 -07:00 |
|
sawka
|
0a6d8b8e9f
|
input packet type
|
2022-06-17 15:31:07 -07:00 |
|