Skip to content

servers:ssh command should allow me to reset my password #39

@rosswintle

Description

@rosswintle

I know this won't be quick because it involves a new API endpoint too, but...

I frequently log in to servers and then want to sudo <something>

I don't always store my sudo password. Instead I depend on resetting it each time.

So...

Current Outcome

I have to log in to spinupwp.app to reset my sudo password when I want to run sudo commands

Desired Outcome

Ideally, either...

a) I could run spinupwp servers:sudo-password <user> <password> to reset the password for <user>. Or leave <password> out to have a new one generated and printed in the output.

b) (and this is the dream...) I could do this:

$ spinupwp servers:ssh 12345 --with-new-password

Your new password is: 9qknFUnNSCgfVJ1ytgDGFMlq
Establishing a secure connection to [server.com] as [ross]...

Acceptance Criteria

  • sudo passwords can be reset from the SpinupWP CLI

Metadata

Metadata

Assignees

No one assigned

    Labels

    Scope: CLIType: EnhancementImproves existing functionality so that something can be achieved better than before.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions