root@goole_oslogin:~# apt update && apt upgrade Ign:1 http://archive.ubuntu.com/ubuntu impish InRelease Hit:2 http://archive.ubuntu.com/ubuntu impish-updates InRelease Hit:3 http://security.ubuntu.com/ubuntu impish-security InRelease Get:1 http://archive.ubuntu.com/ubuntu impish InRelease [269 kB] Get:4 http://archive.ubuntu.com/ubuntu impish/universe amd64 Packages [13.0 MB] Fetched 13.3 MB in 15s (871 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@temp:~# apt install google-compute-engine-oslogin Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libcurl4 libldap-2.5-0 libldap-common libnghttp2-14 libpsl5 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libssh-4 libwrap0 ncurses-term openssh-server openssh-sftp-server publicsuffix python3-distro ssh-import-id wget Suggested packages: libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql molly-guard monkeysphere ssh-askpass ufw The following NEW packages will be installed: google-compute-engine-oslogin libcurl4 libldap-2.5-0 libldap-common libnghttp2-14 libpsl5 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libssh-4 libwrap0 ncurses-term openssh-server openssh-sftp-server publicsuffix python3-distro ssh-import-id wget 0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded. Need to get 2,639 kB of archives. After this operation, 14.4 MB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://archive.ubuntu.com/ubuntu impish/main amd64 libpsl5 amd64 0.21.0-1.2 [53.5 kB] Get:2 http://archive.ubuntu.com/ubuntu impish/main amd64 publicsuffix all 20210108.1309-1 [116 kB] Get:3 http://archive.ubuntu.com/ubuntu impish/main amd64 wget amd64 1.21-1ubuntu3 [351 kB] Get:4 http://archive.ubuntu.com/ubuntu impish/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg-2.1build1 [14.6 kB] Get:5 http://archive.ubuntu.com/ubuntu impish/main amd64 libsasl2-2 amd64 2.1.27+dfsg-2.1build1 [46.1 kB] Get:6 http://archive.ubuntu.com/ubuntu impish/main amd64 libldap-2.5-0 amd64 2.5.6+dfsg-1~exp1ubuntu1 [186 kB] Get:7 http://archive.ubuntu.com/ubuntu impish/main amd64 libnghttp2-14 amd64 1.43.0-1 [72.5 kB] Get:8 http://archive.ubuntu.com/ubuntu impish/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2build2 [55.0 kB] Get:9 http://archive.ubuntu.com/ubuntu impish/main amd64 libssh-4 amd64 0.9.6-1 [185 kB] Get:10 http://archive.ubuntu.com/ubuntu impish/main amd64 libcurl4 amd64 7.74.0-1.3ubuntu2 [273 kB] Get:11 http://archive.ubuntu.com/ubuntu impish/main amd64 libldap-common all 2.5.6+dfsg-1~exp1ubuntu1 [18.9 kB] Get:12 http://archive.ubuntu.com/ubuntu impish/main amd64 libsasl2-modules amd64 2.1.27+dfsg-2.1build1 [48.7 kB] Get:13 http://archive.ubuntu.com/ubuntu impish/main amd64 libwrap0 amd64 7.6.q-31 [46.3 kB] Get:14 http://archive.ubuntu.com/ubuntu impish/main amd64 ncurses-term all 6.2+20201114-2build1 [249 kB] Get:15 http://archive.ubuntu.com/ubuntu impish/main amd64 openssh-sftp-server amd64 1:8.4p1-5ubuntu2 [34.3 kB] Get:16 http://archive.ubuntu.com/ubuntu impish/main amd64 openssh-server amd64 1:8.4p1-5ubuntu2 [383 kB] Get:17 http://archive.ubuntu.com/ubuntu impish/main amd64 google-compute-engine-oslogin amd64 20210728.00-0ubuntu1 [481 kB] Get:18 http://archive.ubuntu.com/ubuntu impish/main amd64 python3-distro all 1.5.0-1 [14.8 kB] Get:19 http://archive.ubuntu.com/ubuntu impish/main amd64 ssh-import-id all 5.11-0ubuntu1 [10.1 kB] Fetched 2,639 kB in 7s (368 kB/s) Preconfiguring packages ... Selecting previously unselected package libpsl5:amd64. (Reading database ... 44443 files and directories currently installed.) Preparing to unpack .../00-libpsl5_0.21.0-1.2_amd64.deb ... Unpacking libpsl5:amd64 (0.21.0-1.2) ... Selecting previously unselected package publicsuffix. Preparing to unpack .../01-publicsuffix_20210108.1309-1_all.deb ... Unpacking publicsuffix (20210108.1309-1) ... Selecting previously unselected package wget. Preparing to unpack .../02-wget_1.21-1ubuntu3_amd64.deb ... Unpacking wget (1.21-1ubuntu3) ... Selecting previously unselected package libsasl2-modules-db:amd64. Preparing to unpack .../03-libsasl2-modules-db_2.1.27+dfsg-2.1build1_amd64.deb ... Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg-2.1build1) ... Selecting previously unselected package libsasl2-2:amd64. Preparing to unpack .../04-libsasl2-2_2.1.27+dfsg-2.1build1_amd64.deb ... Unpacking libsasl2-2:amd64 (2.1.27+dfsg-2.1build1) ... Selecting previously unselected package libldap-2.5-0:amd64. Preparing to unpack .../05-libldap-2.5-0_2.5.6+dfsg-1~exp1ubuntu1_amd64.deb ... Unpacking libldap-2.5-0:amd64 (2.5.6+dfsg-1~exp1ubuntu1) ... Selecting previously unselected package libnghttp2-14:amd64. Preparing to unpack .../06-libnghttp2-14_1.43.0-1_amd64.deb ... Unpacking libnghttp2-14:amd64 (1.43.0-1) ... Selecting previously unselected package librtmp1:amd64. Preparing to unpack .../07-librtmp1_2.4+20151223.gitfa8646d.1-2build2_amd64.deb ... Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build2) ... Selecting previously unselected package libssh-4:amd64. Preparing to unpack .../08-libssh-4_0.9.6-1_amd64.deb ... Unpacking libssh-4:amd64 (0.9.6-1) ... Selecting previously unselected package libcurl4:amd64. Preparing to unpack .../09-libcurl4_7.74.0-1.3ubuntu2_amd64.deb ... Unpacking libcurl4:amd64 (7.74.0-1.3ubuntu2) ... Selecting previously unselected package libldap-common. Preparing to unpack .../10-libldap-common_2.5.6+dfsg-1~exp1ubuntu1_all.deb ... Unpacking libldap-common (2.5.6+dfsg-1~exp1ubuntu1) ... Selecting previously unselected package libsasl2-modules:amd64. Preparing to unpack .../11-libsasl2-modules_2.1.27+dfsg-2.1build1_amd64.deb ... Unpacking libsasl2-modules:amd64 (2.1.27+dfsg-2.1build1) ... Selecting previously unselected package libwrap0:amd64. Preparing to unpack .../12-libwrap0_7.6.q-31_amd64.deb ... Unpacking libwrap0:amd64 (7.6.q-31) ... Selecting previously unselected package ncurses-term. Preparing to unpack .../13-ncurses-term_6.2+20201114-2build1_all.deb ... Unpacking ncurses-term (6.2+20201114-2build1) ... Selecting previously unselected package openssh-sftp-server. Preparing to unpack .../14-openssh-sftp-server_1%3a8.4p1-5ubuntu2_amd64.deb ... Unpacking openssh-sftp-server (1:8.4p1-5ubuntu2) ... Selecting previously unselected package openssh-server. Preparing to unpack .../15-openssh-server_1%3a8.4p1-5ubuntu2_amd64.deb ... Unpacking openssh-server (1:8.4p1-5ubuntu2) ... Selecting previously unselected package google-compute-engine-oslogin. Preparing to unpack .../16-google-compute-engine-oslogin_20210728.00-0ubuntu1_amd64.deb ... Unpacking google-compute-engine-oslogin (20210728.00-0ubuntu1) ... Selecting previously unselected package python3-distro. Preparing to unpack .../17-python3-distro_1.5.0-1_all.deb ... Unpacking python3-distro (1.5.0-1) ... Selecting previously unselected package ssh-import-id. Preparing to unpack .../18-ssh-import-id_5.11-0ubuntu1_all.deb ... Unpacking ssh-import-id (5.11-0ubuntu1) ... Setting up openssh-sftp-server (1:8.4p1-5ubuntu2) ... Setting up libpsl5:amd64 (0.21.0-1.2) ... Setting up python3-distro (1.5.0-1) ... Setting up wget (1.21-1ubuntu3) ... Setting up ssh-import-id (5.11-0ubuntu1) ... Setting up libsasl2-modules:amd64 (2.1.27+dfsg-2.1build1) ... Setting up libnghttp2-14:amd64 (1.43.0-1) ... Setting up libldap-common (2.5.6+dfsg-1~exp1ubuntu1) ... Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg-2.1build1) ... Setting up libwrap0:amd64 (7.6.q-31) ... Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build2) ... Setting up libsasl2-2:amd64 (2.1.27+dfsg-2.1build1) ... Setting up libssh-4:amd64 (0.9.6-1) ... Setting up publicsuffix (20210108.1309-1) ... Setting up ncurses-term (6.2+20201114-2build1) ... Setting up openssh-server (1:8.4p1-5ubuntu2) ... Creating config file /etc/ssh/sshd_config with new version Creating SSH2 RSA key; this may take some time ... 3072 SHA256:pVjiFMEJcM8NC1NA7CxhL42My1c5/oqlzHgpQY3Y7ok root@temp (RSA) Creating SSH2 ECDSA key; this may take some time ... 256 SHA256:tNGDZGT1lAd2X0Ng0END+xOXB4gF9bs+TpqWuV5auRI root@temp (ECDSA) Creating SSH2 ED25519 key; this may take some time ... 256 SHA256:Mad60YhhDb6gy2RbewOkIySr3Bq/s9dQDj5DwvwmPA8 root@temp (ED25519) Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service. Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service. rescue-ssh.target is a disabled or a static unit, not starting it. Setting up libldap-2.5-0:amd64 (2.5.6+dfsg-1~exp1ubuntu1) ... Setting up libcurl4:amd64 (7.74.0-1.3ubuntu2) ... Setting up google-compute-engine-oslogin (20210728.00-0ubuntu1) ... Created symlink /etc/systemd/system/timers.target.wants/google-oslogin-cache.timer → /lib/systemd/system/google-oslogin-cache.timer. Processing triggers for libc-bin (2.34-0ubuntu2) ... root@google_oslogin:~# dpkg -i ./google-compute-engine-oslogin_20210907.00-0ubuntu1_amd64.deb (Reading database ... 47439 files and directories currently installed.) Preparing to unpack .../google-compute-engine-oslogin_20210907.00-0ubuntu1_amd64.deb ... Unpacking google-compute-engine-oslogin (20210907.00-0ubuntu1) over (20210728.00-0ubuntu1) ... Setting up google-compute-engine-oslogin (20210907.00-0ubuntu1) ... Processing triggers for libc-bin (2.34-0ubuntu2) ... root@google_oslogin:~# google_oslogin_control activate utkarsh Activating Google Compute Engine OS Login. Restarting optional services. Restarting SSHD root@google_oslogin:~# google_authorized_keys_sk utkarsh root@google_oslogin:~# google_authorized_keys utkarsh root@google_oslogin:~# google_oslogin_control deactivate utkarsh Deactivating Google Compute Engine OS Login. Restarting optional services. Restarting SSHD root@google_oslogin:~# apt remove google-compute-engine-oslogin Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: libcurl4 libldap-2.5-0 libldap-common libnghttp2-14 libpsl5 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libssh-4 libwrap0 ncurses-term openssh-server openssh-sftp-server publicsuffix python3-distro ssh-import-id wget Use 'apt autoremove' to remove them. The following packages will be REMOVED: google-compute-engine-oslogin 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 4,463 kB disk space will be freed. Do you want to continue? [Y/n] (Reading database ... 47440 files and directories currently installed.) Removing google-compute-engine-oslogin (20210907.00-0ubuntu1) ... Processing triggers for libc-bin (2.34-0ubuntu2) ...