ubuntu - 无法从命令行登录 Heroku 帐户

标签 ubuntu heroku command-line multi-factor-authentication codio

我正在使用 codio.com 。从那里我使用 ubuntu 终端登录 Heroku,但它给了我以下错误。我已阅读帮助 page还 。它说使用 MFA 您必须使用浏览器进行登录。但问题是浏览器没有从 Codio 平台打开。我被困在这一点上。请帮忙 。

codio@actor-spoon:~/workspace/helloSaas$ heroku login -i                 
heroku: Enter your login credentials
Email: prashantexploring@gmail.com
Password: ********
 ›   Error: Your account has MFA enabled; API requests using basic 
 ›   authentication with email and password are not supported. Please 
 ›   generate an authorization token for API access. 
 ›
 ›   Error ID: vaas_enrolled
工作:):只需粘贴 API key 代替密码。
codio@magic-savage:~/workspace/rottenpotatoes$ heroku login -i
 ›   Warning: heroku update available from 7.45.0 to 7.59.2.
heroku: Enter your login credentials
Email: prashantexploring@gmail.com
Password: ************************************
Logged in as prashantexploring@gmail.com
codio@magic-savage:~/workspace/rottenpotatoes$ 

最佳答案

您可以使用“API Key”作为密码。
enter image description here

关于ubuntu - 无法从命令行登录 Heroku 帐户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68105084/

相关文章:

shell - 执行 shell 脚本时未找到 fc

r - 在 Ubuntu 上安装 R

node.js - Heroku 不更新 node.js > package.json Github tarball 依赖项

html - 通过 Golang 提供 HTML5 应用程序

windows - 更改以从环境变量 PATH 中删除路径

mysql - 如何清空一个非常大的mysql表?

django - apache2 python 3.4.3 ubuntu 错误 wsgi no module named

node.js - 413 请求实体太大 nginx/1.14.0

php - 是否可以将 Heroku Foreman 与 PHP 一起使用?

shell - 如何拼接两个数据源(或将参数附加到动态参数列表)?