You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: os/booting-on-google-compute-engine.md
+29-1Lines changed: 29 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,11 @@ For more information about mounting storage, Google's [own documentation](https:
94
94
95
95
To add more instances to the cluster, just launch more with the same Ignition config inside of the project.
96
96
97
-
## SSH
97
+
## SSH and users
98
+
99
+
Users are added to Container Linux on GCE by the user provided configuration (i.e. Ignition, cloudinit) and by either the GCE account manager or [GCE OS Login](https://cloud.google.com/compute/docs/instances/managing-instance-access). OS Login is used if it is enabled for the instance, otherwise the GCE account manager is used.
100
+
101
+
### Using the GCE account manager
98
102
99
103
You can log in your Container Linux instances using:
Users other than `core`, which are set up by the GCE account manager, may not be a member of required groups. If you have issues, try running commands such as `journalctl` with sudo.
106
110
111
+
### Using OS Login
112
+
113
+
You can log in using your Google account on instances with OS Login enabled. OS Login needs to be [enabled in the GCE console](https://cloud.google.com/compute/docs/instances/managing-instance-access#enable_oslogin) and on the instance. It is enabled by default on instances provisioned with Container Linux 1898.0.0 or later. Once enabled, you can log into your Container Linux instances using:
#### Disabling OS Login on newly provisioned nodes
123
+
124
+
You can disable the OS Login functionality by masking the `oem-gce-enable-oslogin.service` unit:
125
+
126
+
```yaml container-linux-config:gce
127
+
systemd:
128
+
units:
129
+
- name: oem-gce-enable-oslogin.service
130
+
mask: true
131
+
```
132
+
133
+
When disabling OS Login functionality on the instance, it is also recommended to disable it in the GCE console.
134
+
107
135
## Using CoreOS Container Linux
108
136
109
137
Now that you have a machine booted it is time to play around. Check out the [Container Linux Quickstart](quickstart.md) guide or dig into [more specific topics](https://coreos.com/docs).
0 commit comments