by Devin Yang
(This article was automatically translated.)

Published - 7 years ago ( Updated - 7 years ago )

Recently, I just started using Google's GCE, and I will record the official Goolge documentation on how to generate a key for the instance to use.
The -C comment here will use the name of the logged-in user, and the -t will use rsa.
ssh-keygen -t rsa -f ~/.ssh/ccc-gce -C [USERNAME]

Then put the newly added key into the metadata.


You can specify this key for SSH public key verification on your computer.
The following are, schematic instructions:
ssh -i ~/.ssh/ccc-gcp devin@ccc.tc
Enter passphrase for key '/Users/devin/.ssh/ccc-gcp':
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.10.0-33-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage

Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud

49 kits can be updated.
0 are security updates


*** System restart required ***
Last login: Sat Oct 7 08:43:55 2017 from 61.228.24.27


Google's official full description is as follows:
connecting-to-instance

 

Tags: linux

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


linux, centos, rsnapshot

How to install rsnapshot on CentOS 7

rsnapshot is a rsync-based tool that can perform snapshot incremental backups. However, we installed which rsnapshot in CentOS. Why is there no such command? There is no way to install it with yum install rsnapshot?

linux,docker

How to execute X client and X Window in Container (docker gui)

Today I will talk to you about X, not iPhone X, nor X-Men, but X Window System, He is the main graphical interface display component of the current Linux system. Since it is very easy to expand and modularize, it has been used since it was established in 1986. The X Window system adopts the Client/Server architecture, which splits the application program and the display into two. The application program of X Windows is usually called X Client, and the display is the well-known X Server. The X client communicates with the X server through the X protocol (X protocol), which is an asynchronous network communication protocol.

linux,system,config

Fix the problem that CentOS6.x can no longer be updated

There may still be some old programs in some places, which can only run the old system. But you want to be able to execute and install some desired packages, you may try this method. Please note that if this system is important to you, please evaluate it yourself. It is recommended that you have a Docker environment and have a backup image before trying it.