Commit Graph

51 Commits

Author SHA1 Message Date
Chip Senkbeil
8972013716
Refactor capabilities to version for manager, integrate version checking for client/server/manager, and define protocol version (#219) 2023-07-14 15:31:53 -05:00
Chip Senkbeil
0efb5aee4c
Add --shell support to CLI (#218) 2023-07-13 01:55:57 -05:00
Chip Senkbeil
7c08495904
Switch to unbounded channels for Reply (#207) 2023-06-19 14:56:19 -05:00
Chip Senkbeil
da75801639
Fix server hangup (#206) 2023-06-18 15:09:09 -05:00
Chip Senkbeil
791a41c29e
Refactor Change to use single path & support renamed detail field (#196) 2023-06-08 16:16:48 -07:00
Chip Senkbeil
b163094d49
Update to test READMEs 2023-06-01 02:39:34 -05:00
Chip Senkbeil
76dc7cf1fa
Refactor into protocol crate & change capabilities -> version (#189) 2023-05-31 02:38:16 -05:00
Chip Senkbeil
8cf7f11269
Refactor authentication into distant-auth 2023-05-27 20:39:26 -05:00
Chip Senkbeil
ea0424e2f4
Feat: set permissions support (#184) 2023-05-27 02:02:59 -05:00
Chip Senkbeil
398aff2f12
Rename distant-core::data to distant-core::protocol and remove distant-core::data::{Msg, Request, Response} from being re-exported at crate root 2023-05-18 08:49:18 -05:00
Chip Senkbeil
b8fecaacc0
Apply nightly formatting to reorder imports and use module-level import granularity 2023-05-16 15:46:24 -05:00
Chip Senkbeil
5940b21339
Fix formatting issues 2023-03-30 18:31:16 -05:00
Chip Senkbeil
27dc5775f9
Update ssh launch to use pty (#157) 2022-12-11 04:15:26 -06:00
Chip Senkbeil
ee50eaf9b3
Add heartbeat support (#153)
* Update to support zero-size frame items

* Add heartbeat functionality with client reconnecting logic

* Fix connection reauthentication failures preventing future reauthentication

* More logging

* Remove persist

* Update connection logic to have server take on client id rather than having client take on server id during reconnect

* Bump minimum rust version to 1.64.0

* Bump to v0.20.0-alpha.3 and fix clippy warnings

* Update cargo.lock
2022-11-27 12:38:53 -06:00
Chip Senkbeil
4798b67dfe
Rewrite to support custom authentication, handshakes for encryption/compression, and reconnecting (#146) 2022-11-19 20:27:49 -06:00
Chip Senkbeil
01610a3ac7
Add search support (#131) 2022-08-30 01:47:23 -07:00
Chip Senkbeil
53fd8d0c4f
Add capabilities support to server and manager 2022-08-28 18:30:36 -05:00
Chip Senkbeil
c19df9f538
Fix ssh system info (#127) 2022-08-28 01:52:36 -05:00
Chip Senkbeil
b9c00153a0
Refactor distant-ssh2 is_windows with fix for exec command 2022-08-25 20:58:58 -05:00
Chip Senkbeil
591cd6ff41
Fix ssh launch login shell using sh on windows; update shell cli to use default shell from system info before defaulting 2022-08-25 01:56:50 -05:00
Chip Senkbeil
56a030e6dd
Update SystemInfo to support username and shell 2022-08-25 01:15:38 -05:00
Chip Senkbeil
486e5399ff
Leverage typed-path to determine if path is windows 2022-08-25 00:32:26 -05:00
Chip Senkbeil
4011671a77
Add SshFamily::as_static_str for logging purposes 2022-08-19 01:42:01 -05:00
Chip Senkbeil
41d35f88de
Fix handling of IPv6 for Destination and DistantSingleKeyCredentials 2022-08-18 01:19:05 -05:00
Chip Senkbeil
768dbdc053
Rewrite Destination to no longer use uriparse library 2022-08-18 00:09:50 -05:00
Chip Senkbeil
ea2e128bc4
Refactor to use distant manager (#112) 2022-08-08 01:10:32 -05:00
Chip Senkbeil
4180ae279a
Bump to 0.16.4 and fix #80 and fix #102 2022-06-01 15:35:29 -05:00
Chip Senkbeil
329213dbe4
Add --ssh-backend support to cli and bump to 0.16.3 2022-05-29 15:16:35 -05:00
Chip Senkbeil
268ec948d6
Add filesystem watching & remove distant-lua (#102) 2022-03-30 19:32:20 -05:00
Chip Senkbeil
3794466dd0
Add windows & unix optional metadata (#96) 2022-02-05 00:54:01 -06:00
Chip Senkbeil
0308343794
Rename detached to persist (#94) 2022-02-04 23:22:09 -06:00
Chip Senkbeil
050bb3496a
Complete shell support (#89) 2022-01-31 20:44:37 -06:00
Chip Senkbeil
c6c07c5c2c
Unfinished pty support, renaming ProcRun -> ProcSpawn and ProcStarted -> ProcSpawned, switch ProcStdin/ProcStdout/ProcStderr to use Vec<u8> instead of String, update RemoteProcess and RemoteLspProcess to support reading/writing string and vec<u8> 2021-12-19 23:48:22 -06:00
Chip Senkbeil
8c234f95d0
Support json ssh auth (#83)
* Add support for JSON communication of ssh auth during launch
* Switch to cbor alternative lib as serde cbor has been abandoned
* Refactor some request & response types to work with new cbor lib
* Update cli to always include serde dep
* Expose origin_id of remote process as method
2021-12-12 15:32:13 -06:00
Chip Senkbeil
669d419672
Remove dns resolution for ssh session and add disclaimer to distant session about dns resolution 2021-11-10 12:41:08 -06:00
Chip Senkbeil
0f56669ccd
Add more logging to distant and ssh handler proc_run methods 2021-10-18 00:18:54 -05:00
Chip Senkbeil
fefcc66737
Bump to v0.15.0-alpha.22 and update distant/ssh handlers to inject exit code 0 when successful 2021-10-16 14:48:48 -05:00
Chip Senkbeil
4957651696
Fix append_file and append_file_text not creating a file when missing 2021-10-16 13:41:23 -05:00
Chip Senkbeil
dba8a80dd8
Bump to v0.15.0-alpha.20 and fix ssh -> distant session not binding to proper interface 2021-10-15 23:45:45 -05:00
Chip Senkbeil
6d0e54bfa1
Remove --daemon in favor of opposite parameter --foreground 2021-10-15 20:40:35 -05:00
Chip Senkbeil
7c27c24636
Fix InmemoryStreamWriteHalf AsyncWrite to properly yield pending upon full channel 2021-10-12 22:51:59 -05:00
Chip Senkbeil
78f827faea
Fix clippy warning 2021-10-11 00:12:08 -05:00
Chip Senkbeil
c2e588544f
Update wezterm-ssh dep to 0.2.0, fix ssh -> distant session, refactor session to have optional details included 2021-10-10 23:09:42 -05:00
Chip Senkbeil
043ae6ca4b
Couple of changes:
1. Add support to detach processes from distant server
2. Refactor distant_bin and distant_args to distant.bin and distant.args
3. Add use_login_shell option for launch distant opts
2021-10-10 15:05:04 -05:00
Chip Senkbeil
3d09ced685
Improve error reporting for failed directory creation via ssh2 2021-10-10 02:43:22 -05:00
Chip Senkbeil
788fa48e96
Several core and lua enhancements
1. Implement system_info and spawn_wait for lua session
2. Implement wait and output for remote process
3. Switch mlua to git latest
4. Update core data error to be error type with io error conversions
5. Add proper error reporting when process gets an error response
6. Update lua launch and connect options to have defaults
2021-10-09 17:38:35 -05:00
Chip Senkbeil
16bed4690b
Add lua lib & support compiling distant cli on windows (#59)
* Update distant-ssh2 with new changes to wezterm-ssh
* Implement lua module (distant-lua)
* Implement tests for lua module (distant-lua-tests)
* Add untested windows daemon support
* distant binary now compiles on windows
* Split up Github actions for Windows, MacOS, and Linux into individual yaml files
2021-10-06 23:17:07 -05:00
Chip Senkbeil
43ffd7ae58
Update Ssh2AuthHandler to take a lifetime 2021-09-29 12:00:41 -05:00
Chip Senkbeil
fb747a3455
Add extra option as fallback for ssh options 2021-09-29 11:20:26 -05:00
Chip Senkbeil
97536c7b2b
Refactor Metadata and SystemInfo response data types to support subtypes as singular parameters 2021-09-29 10:54:37 -05:00