Skip to content
This repository was archived by the owner on Jan 17, 2021. It is now read-only.

Conversation

@sreya
Copy link
Collaborator

@sreya sreya commented Apr 30, 2019

  • Specifying 'gcp:' for the host argument is now
    supported for indicating a Google Cloud compute instance

resolves #2

@sreya sreya requested a review from nhooyr April 30, 2019 23:41
@sreya sreya marked this pull request as ready for review April 30, 2019 23:54
Copy link
Contributor

@nhooyr nhooyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can use

$ gcloud compute ssh anmol --dry-run
No zone specified. Using zone [northamerica-northeast1-a] for instance: [anmol].
/usr/bin/ssh -t -i /Users/nhooyr/.ssh/id_ed25519 -o CheckHostIP=no -o HostKeyAlias=compute.627522637120333986 -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/Users/nhooyr/.ssh/google_compute_known_hosts nhooyr@35.203.36.163

in order to grab the command to be able to ssh into the instance. Might make this code cleaner/more robust.

Copy link
Contributor

@nhooyr nhooyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise looks reasonable to me

@sreya
Copy link
Collaborator Author

sreya commented May 1, 2019

Requires some parsing to grab just the flags and ip (have to pass the ssh arguments to rsync), but it'll definitely be a more robust solution.

@sreya sreya force-pushed the gcp branch 2 times, most recently from 44fe18c to 595d918 Compare May 1, 2019 17:13
- Specifying 'gcp:<instance-name>' for the host argument is now
  supported for indicating a Google Cloud compute instance
@sreya sreya merged commit 2f522f5 into master May 1, 2019
@sreya sreya deleted the gcp branch May 1, 2019 17:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for GCP instances

2 participants