waveterm/waveshell/pkg
Sylvie Crowe 018bb14b6a
Use ssh library for remote connections (#250)
* create proof of concept ssh library integration

This is a first attempt to integrate the golang crypto/ssh library for
handling remote connections. As it stands, this features is limited to
identity files without passphrases. It needs to be expanded to include
key+passphrase and password verifications as well.

* add password and keyboard-interactive ssh auth

This adds several new ssh auth methods. In addition to the PublicKey
method used previously, this adds password authentication,
keyboard-interactive authentication, and PublicKey+Passphrase
authentication.

Furthermore, it refactores the ssh connection code into its own wavesrv
file rather than storing int in waveshell's shexec file.

* clean up old mshell launch methods

In the debugging the addition of the ssh library, i had several versions
of the MShellProc Launch function. Since this seems mostly stable, I
have removed the old version and the experimental version in favor of
the combined version.

* allow switching between new and old ssh for dev

It is inconvenient to create milestones without being able to merge into
the main branch. But due to the experimental nature of the ssh changes,
it is not desired to use these changes in the main branch yet. This
change disables the new ssh launcher by default. It can be used by
changing the UseSshLibrary constant to true in remote.go. With this, it
becomes possible to merge these changes into the main branch without
them being used in production.

* fix: allow retry after ssh auth failure

Previously, the error status was not set when an ssh connection failed.
Because of this, an ssh connection failure would lock the failed remote
until waveterm was rebooted. This fix properly sets the error status so
this cannot happen.
2024-01-25 10:18:11 -08:00
..
base zsh support (#227) 2024-01-16 16:11:04 -08:00
binpack zsh support (#227) 2024-01-16 16:11:04 -08:00
cirfile Clean up cirfile and cirfile_tests, ensure we are using contexts with cancellation signals (#183) 2023-12-22 18:07:58 -08:00
cmdtail remove more go warnings 2023-12-05 10:49:30 -08:00
mpio add license notice (#37) 2023-10-16 21:31:13 -07:00
packet touchups to UI for AI chat feature (#237) 2024-01-17 15:39:24 -08:00
server Use ssh library for remote connections (#250) 2024-01-25 10:18:11 -08:00
shellapi fix setting of readonly vars issue with zsh rc files 2024-01-20 13:18:14 -08:00
shellenv zsh support (#227) 2024-01-16 16:11:04 -08:00
shellutil zsh support (#227) 2024-01-16 16:11:04 -08:00
shexec Use ssh library for remote connections (#250) 2024-01-25 10:18:11 -08:00
simpleexpand add license notice (#37) 2023-10-16 21:31:13 -07:00
statediff zsh support (#227) 2024-01-16 16:11:04 -08:00
utilfn zsh support (#227) 2024-01-16 16:11:04 -08:00