Laravel的“特使奔跑"命令不适用于ssh键 [英] Laravel "envoy run" command not working with ssh key
本文介绍了Laravel的“特使奔跑"命令不适用于ssh键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在laravel项目文件夹中运行以下命令,并得到以下错误.
I am running following command in a laravel project folder and getting following error.
rakib$ envoy run list --env=production
[ubuntu@54.187.123.4]: Permission denied (publickey).
但是我可以使用以下命令成功ssh:
But I can successfully ssh using following command:
ssh -i ~/.ssh/sw-new.pem ubuntu@54.187.123.4
我的〜/.ssh/config文件内容如下:
My ~/.ssh/config file content looks like:
Host 54.187.123.4
IdentityFile ~/.ssh/sw-new.pem
谁能建议我出现权限被拒绝"错误的可能原因是什么?
Can anyone suggest me what is the possible reason of getting "Permission denied" error?
推荐答案
在尝试ssh进入生产服务器时,使节可能使用了错误的用户.在您的〜/.ssh/config文件中指定一个用户:
It's possible that envoy is using the wrong user when attempting to ssh into the production server. Specify a user in your ~/.ssh/config file:
Host 54.187.123.4
IdentityFile ~/.ssh/sw-new.pem
User ubuntu
应该可以.
这篇关于Laravel的“特使奔跑"命令不适用于ssh键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文