Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Unify ssh and exec commands #580

Merged
merged 6 commits into from
Apr 20, 2020
Merged

Commits on Apr 20, 2020

  1. Unify ssh and exec

    This change combines ssh and exec to use the same code. ssh no longer
    uses ssh binary on the host but uses go's crypto/ssh package to create a
    terminal session.
    
    Moves newSignerForKey, newSSHConfig and joinShellCommand functions from
    exec.go to ssh.go, keeping all ssh related functions in the same file.
    darkowlzz committed Apr 20, 2020
    Configuration menu
    Copy the full SHA
    0f1b766 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    78c0fcc View commit details
    Browse the repository at this point in the history
  3. ssh: Add flag tty for configuring TTY

    Breaking change. Short flag -t changed from timeout to tty, similar to
    the exec command.
    darkowlzz committed Apr 20, 2020
    Configuration menu
    Copy the full SHA
    63b0edb View commit details
    Browse the repository at this point in the history
  4. ssh: Return actual ssh exit code

    When the ssh session ends, the actual ssh exit code should be returned.
    This change adds a deferred os.Exit and sets any ssh error code received
    as the exit code.
    darkowlzz committed Apr 20, 2020
    Configuration menu
    Copy the full SHA
    5b7c7b8 View commit details
    Browse the repository at this point in the history
  5. make tidy

    darkowlzz committed Apr 20, 2020
    Configuration menu
    Copy the full SHA
    d172456 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d92a74b View commit details
    Browse the repository at this point in the history