google-compute-engine"/>
  • 7
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

I have a situation here, I want to auto provision 2 GCE vms ( say A and B) from an exiting GCE (say C) and A, B and C machines should communicate to each other without asking any password (enable password less login). With gcloud utility, I am able to auto provision A and B from C but could not create password less login automatically. Tried with google's document of 'gcloud compute ssh' but my user was not able to log into without password.

By default, all the GCE images use private/public key pair for ssh authentication. You can enable password based authentication, however, its not recommended due to security reasons.

If you wish to ssh from one VM to another without providing the ssh keys, you can start ssh-agent on one VM to manage your keys. The steps are documented on this link under the heading Connecting to instances that do not have external IP addresses.

  • 2
Reply Report

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags