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

Load the environment variables of .env to the system

Load the environment variables of .env to the system

php,linux

WebShell Function Introduction and Precautions

I suddenly wanted to introduce what is WebShell, so I found one on the Internet. Its functions are quite good. But I still wanted some features, so I spent three nights making some small optimizations for him. If you haven't heard of WebShell yet, take a look at this video. If you like my optimized version, please give me a like, thank you.

linux

Remove the Linux Kernel that is not used by the old version on Ubuntu

This page describes how I removed the old version of Linux Kernel taking up space on ubuntu.