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

show instance name when ssh-config command is run #64

Closed

Conversation

mkinney
Copy link

@mkinney mkinney commented Jan 3, 2020

Resolves #63

$ mech ssh-config
Host centos8b
  User vagrant
  Port 22
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  PasswordAuthentication no
  IdentityFile /Users/mikekinney/.mech/insecure_private_key
  IdentitiesOnly yes
  LogLevel FATAL
  HostName 192.168.2.237

$ mech ls | grep centos8b
            centos8b	  192.168.2.237	                     bento/centos-8	 201912.04.0	/Users/mikekinney/Documents/python/mech/mkinney_mech

@mkinney
Copy link
Author

mkinney commented Jan 24, 2020

@Kronuz Any interest in merging these PRs?

@ColdHeat
Copy link
Collaborator

ColdHeat commented Feb 4, 2020

This looks reasonable to me. I've been away from the codebase for sometime but I'm not clear on how self.instance_name appears to be set? Can you add an empty attribute in the classes to denote where it's actually being stored?

@mkinney
Copy link
Author

mkinney commented Feb 4, 2020

Going to close this PR as I have a much large PR coming.

@mkinney mkinney closed this Feb 4, 2020
@mkinney mkinney mentioned this pull request Feb 14, 2020
@mkinney mkinney deleted the show-instance-name-in-ssh-config branch February 19, 2020 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Host always shows as "mech" when running "mech ssh-config" command
2 participants