相关疑难解决方法(0)

如何在无头远程服务器上登录`firebase-tools`?

我试图firebase-tools通过Putty在远程Linux服务器上使用.此服务器上没有运行桌面.

当我跑步时firebase login,我会看到一个长网址,我需要将其复制/粘贴到任何其他设备的浏览器中:

https://accounts.google.com/o/oauth2/auth?client_id=xxxxxxxxxxxx.apps.googleusercontent.com&scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffirebase%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform&response_type=code&state=3kkd93kl&redirect_uri=http%3A%2F%2Flocalhost%3A9005
Run Code Online (Sandbox Code Playgroud)

我将其复制/粘贴到我本地计算机上的浏览器中,然后使用我的Google帐户进行身份验证,然后尝试将我重定向到

http://localhost:9005/?state=25744816&code=4/mz.....
Run Code Online (Sandbox Code Playgroud)

这不是我的机器上运行的实际服务器,并且绝不是远程机器的地址,远程机器甚至没有活动端口9005.

结果是终端仍然坐在"等待认证......"

我看到一个命令叫做login:ci非交互式环境,但它似乎与login命令做同样的事情.

我该如何解决这个问题?

linux firebase firebase-tools

8
推荐指数
1
解决办法
2240
查看次数

标签 统计

firebase ×1

firebase-tools ×1

linux ×1