小编Kir*_*rna的帖子

FileZilla:当我对我的EC2实例执行sftp时,"ubuntu的身份验证失败太多"

我过去6个月一直在使用我的AWS EC2实例,但现在当我使用sftp时,我不断收到此错误.

Error:          Server sent disconnect message
Error:          type 2 (protocol error):
Error:          "Too many authentication failures for ubuntu"
Error:          Could not connect to server
Run Code Online (Sandbox Code Playgroud)

我怎么能解决这个问题?

sftp amazon-ec2 amazon-web-services

2
推荐指数
1
解决办法
1977
查看次数

如何在终端中取消设置/覆盖 GOOGLE_APPLICATION_CREDENTIALS 环境变量?

我需要为我的应用程序使用“Google 语音 API”。为此,我安装了“Google 云存储 SDK”。我按照此链接“ https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu ”安装 gcloud。

然后我set GOOGLE_APPLICATION_CREDENTIALS /path/to/google-speech-API-key/key.json在终端上运行这个命令“ ”来设置 GOOGLE_APPLICATION_CREDENTIALS。但是当我尝试测试时,我得到了这个异常 "Error reading credential file from environment variable GOOGLE_APPLICATION_CREDENTIALS, value '/path/to/google-speech-API-key': File does not exist"。我确定该目录存在并且它具有所有权限。

然后我运行这个命令"gcloud auth application-default login"来实际设置默认密钥。我收到以下警告

"The environment variable [GOOGLE_APPLICATION_CREDENTIALS] is set to:
  [/path/to/google-speech-API-key]
Credentials will still be generated to the default location:
  [/path/to/.config/gcloud/key.json]
To use these credentials, unset this environment variable before
running your application."
Run Code Online (Sandbox Code Playgroud)

那么,现在我怎么能取消或覆盖 GOOGLE_APPLICATION_CREDENTIALS?

gcloud google-cloud-speech

2
推荐指数
1
解决办法
2778
查看次数