Mati's Blog

How to connect Ubuntu/CentOS server on Google Cloud via SSH in Linux Ubuntu

- On Client:
ssh-keygen -t rsa -f ~/.ssh/matiapp-ssh-key -C ssh_username
cd ~/.ssh/
Copy content of public file (.pub)

- On Cloud:
Go to VM instances
Select server, click Edit, scroll to SSH
Paste the copied and Save

Using command to connect
ssh -i ~/.ssh/matiapp-ssh-key [email protected]_address


2019 © Tien Mai. Powered by MatiFly