到目前为止,我已经能够使用谷歌 Cloud sdk尝试连接到谷歌 Cloud 上的虚拟机实例,它还在我的Windows用户帐户上创建了一个.ssh文件夹,同时在线虚拟机上创建了一个类似的新用户名字“DIGIVILLE”
这是filezilla的输出
Status: Waiting to retry...
Status: Connecting to 35.185.21.196...
Response: fzSftp started
Command: keyfile "C:\Documents and Settings\DIGIVILLE\.ssh\google_compute_engine.ppk"
Command: open "root@35.185.21.196" 22
Error: Disconnected: No supported authentication methods available (server sent: publickey)
Error: Could not connect to server
Status: Connecting to 35.185.21.196...
Response: fzSftp started
Command: keyfile "C:\Documents and Settings\DIGIVILLE\.ssh\google_compute_engine.ppk"
Command: open "digiville@35.185.21.196" 22
Error: Disconnected: No supported authentication methods available (server sent: publickey)
Error: Could not connect to server
Status: Waiting to retry...
Status: Connecting to 35.185.21.196...
Response: fzSftp started
Command: keyfile "C:\Documents and Settings\DIGIVILLE\.ssh\google_compute_engine.ppk"
Command: open "digiville@35.185.21.196" 22
Error: Disconnected: No supported authentication methods available (server sent: publickey)
Error: Could not connect to server
和设置
包括ppk文件
1 回答
在第一个屏幕截图中,在“我的网站” - >“新建站点” - >“登录类型”中,您必须选择“密钥文件” .
如果您需要生成密钥文件并将其应用于项目,可以按照此处的说明操作:
https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys#createsshkeys https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys#edit-ssh-metadata