waveterm/wavesrv/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
..
cmdrunner zsh cleanup and stats (#247) 2024-01-23 17:19:03 -08:00
comp zsh support (#227) 2024-01-16 16:11:04 -08:00
dbutil big update to screen/session delete, and clear (#199) 2023-12-27 13:11:53 -08:00
keygen Fixing linting errors in unused keygen function (#135) 2023-12-12 14:17:03 -08:00
mapqueue add license notice (#37) 2023-10-16 21:31:13 -07:00
pcloud zsh cleanup and stats (#247) 2024-01-23 17:19:03 -08:00
promptenc zsh support (#227) 2024-01-16 16:11:04 -08:00
releasechecker Add sidebar banner when new release is available (#147) 2023-12-15 17:43:54 -08:00
remote Use ssh library for remote connections (#250) 2024-01-25 10:18:11 -08:00
rtnstate zsh support (#227) 2024-01-16 16:11:04 -08:00
scbase zsh cleanup and stats (#247) 2024-01-23 17:19:03 -08:00
scpacket zsh support (#227) 2024-01-16 16:11:04 -08:00
scws ssh config import (#156) 2023-12-28 11:09:41 -08:00
shparse zsh support (#227) 2024-01-16 16:11:04 -08:00
sstore Fix bug where active session ID is sometimes not persisted (#248) 2024-01-24 11:32:48 -08:00
wsshell add license notice (#37) 2023-10-16 21:31:13 -07:00