Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd: "inertia remote login" #535

Closed
bobheadxi opened this issue Feb 8, 2019 · 4 comments · Fixed by #647
Closed

cmd: "inertia remote login" #535

bobheadxi opened this issue Feb 8, 2019 · 4 comments · Fixed by #647
Assignees
Labels
:cmd command line and clientside functionality good first issue cake for everyone!
Milestone

Comments

@bobheadxi
Copy link
Member

bobheadxi commented Feb 8, 2019

We have an inertia [remote] user login, but we should add an inertia remote login as well to complement inertia remote add - the latter asks for a lot of SSH-specific information that a user using an account does not have to provide.

@bobheadxi bobheadxi added the :cmd command line and clientside functionality label Feb 8, 2019
@bobheadxi bobheadxi added this to the v0.6.0 milestone Feb 8, 2019
@bobheadxi bobheadxi added the good first issue cake for everyone! label Feb 11, 2019
@yaoharry yaoharry self-assigned this Feb 16, 2019
@bobheadxi bobheadxi changed the title command: "inertia remote login" cmd: "inertia remote login" Feb 27, 2019
@yaoharry
Copy link
Member

yaoharry commented Mar 8, 2019

@bobheadxi
Could you clarify again how inertia [remote] user login differs from inertia remote login?

Additionally, would its input parameters be like this:
inertia remote login [remote IP address], which would prompt for user and password for the remote?

@bobheadxi
Copy link
Member Author

  • inertia [remote] user login: given a previously configured remote, log in as a user
  • inertia remote login: connect to an existing remote as a user, as an alternative to inertia remote add, which prompts for a lot of details that are more relevant to first-time setup than anything else

Input would probably be:

inertia remote login [remote_name] [address] [--user] [--totp]

if no user is provided, prompt for user when the command runs, and then prompt for password. remote_name would be what to call the remote after successfully connecting to it.

e.g.

$> inertia remote login existing_remote 123.456.789.101 --user bobheadxi
# ...
$> inertia existing_remote status

@yaoharry
Copy link
Member

yaoharry commented Mar 8, 2019

Would inertia remote login [remote_name] [address] [--user] [--totp] configure the remote for future logins? Or would it be more of a one time login?

Ex. Once inertia remote login is executed would inertia [remote] user login be able to be ran as it is now configured?

@bobheadxi
Copy link
Member Author

bobheadxi commented Mar 8, 2019

yep it would be a one-time login

inertia [remote] user login is unaffected (a user would need it to refresh their token, or switch users)

that said, good idea - maybe we should track who is logged in, and when logging in again, default to taht user. could even save passwords. feel free to open a ticket!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:cmd command line and clientside functionality good first issue cake for everyone!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants