aboutsummaryrefslogtreecommitdiff
path: root/src/connection/ssh.lisp
Commit message (Collapse)AuthorAge
* replace ESCAPE-SH-TOKEN and ESCAPE-SH-COMMAND with new SH-ESCAPESean Whitton2022-03-11
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add dep on Anaphora and use APROG1, ALET & AAND in various placesSean Whitton2021-09-08
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* convert CONNECTION slots to connattrs & fix finding homedirsSean Whitton2021-05-23
| | | | | | | | | | | | HOME does not take into account /etc/passwd inside the chroot, even when starting a login shell with, e.g., "chroot /chroot sh -lc 'echo $HOME'" -- we would need something which emulates login(1), like su(1), but the -c argument to su(1) is not portable. getent(1) is not POSIX. So use tilde expansion. Additionally, avoid having UPLOAD-ALL-PREREQUISITE-DATA store values for the remote UID, remote homedir etc. from *before* the chroot/setuid operation. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* :SSH connection: fix broken ssh -fNSean Whitton2021-04-18
| | | | | | | | | - Previous command did not include the username. - In some scenarios ssh -fN does not exit, and we can achieve our purpose of confirming that we can authenticate just by calling the ":" builtin. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rework uploading data to be in terms of CONNECTION-UPLOADSean Whitton2021-03-27
| | | | | | | | | | Incremental updates of items of prerequisite data was not implemented, so the previous meaning of CONNECTION-UPLOAD was not achieving much. This simplifies the core implementation, should still allow connection types to implement the method to provide optimisations, and provides a way to implement copying items of prerequisite data into chroots. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* untabifySean Whitton2021-03-22
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add facility for more regular progress and debug printingSean Whitton2021-03-21
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add and use :CONSFIGURATOR named readtableSean Whitton2021-03-20
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* factor out SHELL-WRAP-CONNECTION superclassSean Whitton2021-02-27
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* use braces rather than parentheses with CL-INTERPOLSean Whitton2021-02-24
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add some output as Consfigurator executes deploymentsSean Whitton2021-02-24
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* use MRUN in various places in the connection type definitionsSean Whitton2021-02-23
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* fix a few calls to RUNSean Whitton2021-02-23
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* fix :SSH CONNECTION-READFILESean Whitton2021-02-22
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* fix :SSH CONNECTION-RUNSean Whitton2021-02-22
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* fix calls to SLOT-VALUESean Whitton2021-02-22
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* attempt to fix escaping in SSHCMDSean Whitton2021-02-22
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rewrite sshcmd and ssh-hostSean Whitton2021-02-21
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* first attempt to implement :SSH connection typeSean Whitton2021-02-21
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* use get-hostname in :ssh ESTABLISH-CONNECTIONSean Whitton2021-02-20
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* update commentSean Whitton2021-02-19
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* update connection-run for :sshSean Whitton2021-02-19
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* import some names from uiopSean Whitton2021-02-18
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* normalise file headers and some commentsSean Whitton2021-02-16
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* move code into an src/ subdirSean Whitton2021-02-16
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>