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

tart ssh #304

Closed
tomjn opened this issue Nov 4, 2022 · 4 comments
Closed

tart ssh #304

tomjn opened this issue Nov 4, 2022 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers not possible atm Not possible at the moment

Comments

@tomjn
Copy link

tomjn commented Nov 4, 2022

A command to open an SSH session with a named Tart VM, with optional authentication parameters

e.g.

tart ssh ubuntu

This is assuming the guest VM is already configured for SSH access, which may require user intervention.

It would also be useful to pass a command as an argument that then runs and exits, perhaps passing back a return code, e.g.

tart ssh ubuntu --command "echo 'hello world'"
@geerlingguy
Copy link

Note that some of the rationale would be to allow programs like Vagrant to log in easily. For Vagrant's preconfigured boxes, they are usually configured with a default admin user like vagrant with password vagrant, and SSH is set up to run on port 22 by default. macOS can even be configured to run SSH the same way, which is highly convenient for those of us who enjoy automating macOS with Ansible ;)

@fkorotkov
Copy link
Contributor

Does ssh ubuntu@$(tart ip ubuntu) work for you?

@fkorotkov fkorotkov added enhancement New feature or request good first issue Good for newcomers labels Nov 6, 2022
@tomjn
Copy link
Author

tomjn commented Nov 6, 2022

That's a promising start. For vagrant at least we'll want to be sure we can put a vagrant user in the VM before running this and that an SSH daemon is running and inside the VM, I imagine we'd do this via packer? Does the Tart packer fork play well with non MacOS VMs?

This is probably going to be the easiest route to running provisioners in Vagrant beyond the scripts to build an images/boxes that get packaged

@fkorotkov
Copy link
Contributor

Since Tart itself is not storing information about user/password configured inside the VM, we can't do tart ssh and an integration will need to take care of it.

@fkorotkov fkorotkov added the not possible atm Not possible at the moment label Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers not possible atm Not possible at the moment
Projects
None yet
Development

No branches or pull requests

3 participants