1. 程式人生 > >MAC ssh 連線 google cloud compute engine instance

MAC ssh 連線 google cloud compute engine instance

ssh 金鑰生成方法:

ssh-keygen -t rsa -f ~/gcpSSH/key(這是儲存金鑰的路徑) -C bigwood(這是訪問標識,可以自定義)

本地連線compute engine instance:

ssh -i ~/gcpSSH/key bigwood@35.231.136.53

本地傳輸檔案到compute engine instance:

scp -i ~/gcpSSH/key -r PATH-of-yourLocalFile bigwood@35.231.136.53:/home/bigwood/lstm