اذهب إلى المحتوى
  • 0

مشكلة في الصلاحيات على منصة Heroku أثناء رفع موقع؟

محمد بوسكوري

السؤال

لي موقع أريد رفعه على منصة Heroku، وقد قمت بنفس الطريقة التي يشرحها الموقع وكذا العديد من المبرمجين في المدونات، وهي باستخدام أمر Git في الطرفية:

git push heroku master

لكن يظهر لدي هذا الخطأ:

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

مع العلم أني قمت بإعدادات SSH KEY لكن أواجهه هذه المشكلة؟ هل من حل؟

رابط هذا التعليق
شارك على الشبكات الإجتماعية

Recommended Posts

  • 0

لحل هذا المشكل عليك أولًا بتحميل مفتاح public key المستخرج من موقع Heroku:

heroku keys:add ~/.ssh/id_rsa.pub

 

في حالة ما لم يكن لديك هذا المفتاح يمكنك استخراجه - توليده- من الموقع عبر أو الطرفية عبر الأمر :

heroku keys:add

كما يمكنك مسح جميع المفاتيح المولدة سابقاً عبر الأمر :

heroku keys:clear

ولرؤية ما يتضمنه حسابك من مفاتيح -Public keys-:

heroku keys

وللتأكد من عمل مفتاح ssh:

ssh -vT git@heroku.com

في حالة الاتصال ستظهر لك رسالة كما في النافذة التالية:

OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Connecting to heroku.com [50.19.85.156] port 22.
debug1: Connection established.
debug1: identity file /c/Wrong/Directory/.ssh/identity type -1
debug1: identity file /c/Wrong/Directory/.ssh/id_rsa type -1
debug1: identity file /c/Wrong/Directory/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version Twisted
debug1: no match: Twisted
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.6
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host 'heroku.com' is known and matches the RSA host key.
debug1: Found key in /c/Wrong/Directory/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /c/Wrong/Directory/.ssh/identity
debug1: Trying private key: /c/Wrong/Directory/.ssh/id_rsa
debug1: Trying private key: /c/Wrong/Directory/.ssh/id_dsa
debug1: No more authentication methods to try.

لاحظ السطر الثاني :

debug1: Connecting to heroku.com [50.19.85.156] port 22.
رابط هذا التعليق
شارك على الشبكات الإجتماعية

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...