• Home
  • Video Courses
  • Tools – Cloud Comparison
  • Open Book & References
    • Google Anthos
    • Ethical AI
    • Production Ready Microservices Using Google Cloud
    • AI Chatbots
    • Enterprise IoT
    • Enterprise Blockchain
    • Cognitive IoT
  • Solution Bytes
    • AWS Solutions
    • GCP Solutions
    • Enterprise Architecture
    • Artificial Intelligence
  • About
  • Subscribe
  • Trends
  • Home
  • Video Courses
  • Tools – Cloud Comparison
  • Open Book & References
    • Google Anthos
    • Ethical AI
    • Production Ready Microservices Using Google Cloud
    • AI Chatbots
    • Enterprise IoT
    • Enterprise Blockchain
    • Cognitive IoT
  • Solution Bytes
    • AWS Solutions
    • GCP Solutions
    • Enterprise Architecture
    • Artificial Intelligence
  • About
  • Subscribe
  • Trends

Google Anthos

home/Reference/Google Anthos
Expand All Collapse All
  •  ANTHOS IN A NUTSHELL
    •   Chapter 1: Introducing Anthos
      • Infra, Container and Cluster Management
      • Service Management
      • Anthos Config Management (ACM)
      • ACM Repository configuration
      • Application Development and Deployment
    • Deployment Options with Anthos
    •   Chapter 2 : ANTHOS CLUSTERS ON BARE METAL
      • Anthos clusters on Bare metal Overview
      • Anthos clusters on Bare metal INSTALLATION overview
      •   Deployment Overview
        • Deployment Topology
      •   Installing Anthos Clusters on Bare metal
        • Installation Plan
        • Create VPC
        • Create VMs
        • Install software on workstation machine
        • Setup ssh for passwordless connections between workstation and cluster machines
        • Create VLAN between all the 4 VMs for L2 subnet
        • Execute bmtcl for creating bare metal cluster configuration file
        • Verify the deployment
        • Login and authenticate the cluster using Google Anthos dashboard
      • Deploy a sample application and invoke it via Load Balancer URL
      • Summary
    •   Chapter 3 : Anthos Service Mesh
      • Anthos SERVICE MESH Overview
      •   Anthos Service Mesh Topology
        • Multi cluster service mesh (single VPC network)
        • Multi cluster service mesh (different VPC networks)
      • Implement Multi cluster service mesh in a single VPC network
      • Implement Multi cluster service mesh in a multiple VPC network
      • SUMMARY

Setup ssh for passwordless connections between workstation and cluster machines

navveen

In this step, we would setup ssh connection between workstation node and cluster machines.

  • Go to workstation (bm-wkst) node and type the following command to create authentication pairs for SSH.

> ssh-keygen -t rsa

Don’t enter any passphrase during regenerating the keys.

  • Go to control panel node (bm-cp) node and enable ssh access for root login. Follow the steps and enter the  command below as highlighted in bold below

mach@bw-cp:~$ sudo su

mach@bw-cp:/home/…# passwd

New password: 

Retype new password: 

passwd: password updated successfully

root@bw-node1:/home/…# 

Note down the above password, as you would need this to login to the bm-cp node 

from bm-wkst node.

  • Next, edit the ssh_config to allow root login and password authentication. 

root@bw-cp:/home/…# nano /etc/ssh/sshd_config

Uncomment the fields – 

PermitRootLogin and PasswordAuthentication and provide value as yes as shown 

below.

PermitRootLogin yes

PasswordAuthentication yes

Save the file.

  • On the command prompt, restart the ssh service.

root@bw-node1: service sshd restart

  • Now, go to bm-wkst node and execute the ssh-copy-id command to copy the public key from bw-wkst to bm-cp node.

mach@bw-wkst:  ssh-copy-id -i ~/.ssh/id_rsa root@10.0.0.3

Replace 10.0.0.3 by  internal ip address of your bm-cp node. (Get the internal ip address from Google Cloud VM console.)

 For step by step details, please refer to YouTube video.

  • Similarly, enable ssh access for root login on bm-node1 and bm-node 2 nodes and copy the public key from bm-wkst to both the nodes.

Was this helpful?

1 Yes  No
Related Solutions
  • SUMMARY
  • Implement Multi cluster service mesh in a multiple VPC network
  • Implement Multi cluster service mesh in a single VPC network
  • Multi cluster service mesh (different VPC networks)
  • Multi cluster service mesh (single VPC network)
  • Anthos Service Mesh Topology
© 2021 Navveen Balani (https://navveenbalani.dev/) |. All rights reserved.