2016-10-11 6 views
0

... "PTY 할당 요청이 채널 0에 실패했습니다"나는 https://devcenter.heroku.com/articles/keys에 instuctions을 따라,하지만 난이 오류가 점점 계속 :ssh를 Heroku가 오류 내가 Heroku가로 (액세스 명령 줄을) ssh를하려고

PTY allocation request failed on channel 0 
shell request failed on channel 0 

전체 로그 :

debug1: Reading configuration data /home/gilad/.ssh/config 
debug1: /home/gilad/.ssh/config line 1: Applying options for heroku.com 
debug1: Reading configuration data /etc/ssh/ssh_config 
debug1: /etc/ssh/ssh_config line 19: Applying options for * 
debug1: Connecting to heroku.com [50.19.85.132] port 22. 
debug1: Connection established. 
debug1: identity file /home/gilad/.ssh/ssh-dss type -1 
debug1: identity file /home/gilad/.ssh/ssh-dss-cert type -1 
debug1: identity file /home/gilad/.ssh/id_rsa type 1 
debug1: identity file /home/gilad/.ssh/id_rsa-cert type -1 
debug1: Enabling compatibility mode for protocol 2.0 
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8 
debug1: Remote protocol version 2.0, remote software version endosome 
debug1: no match: endosome 
debug1: SSH2_MSG_KEXINIT sent 
debug1: SSH2_MSG_KEXINIT received 
debug1: kex: server->client aes128-ctr hmac-sha1 none 
debug1: kex: client->server aes128-ctr hmac-sha1 none 
debug1: sending SSH2_MSG_KEX_ECDH_INIT 
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY 
debug1: Server host key: RSA 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad 
debug1: Host 'heroku.com' is known and matches the RSA host key. 
debug1: Found key in /home/gilad/.ssh/known_hosts:2 
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: Offering RSA public key: /home/gilad/.ssh/id_rsa 
debug1: Server accepts key: pkalg ssh-rsa blen 279 
debug1: Authentication succeeded (publickey). 
Authenticated to heroku.com ([50.19.85.132]:22). 
debug1: channel 0: new [client-session] 
debug1: Entering interactive session. 
debug1: Sending environment. 
debug1: Sending env LC_PAPER = he_IL.UTF-8 
debug1: Sending env LC_ADDRESS = he_IL.UTF-8 
debug1: Sending env LC_MONETARY = he_IL.UTF-8 
debug1: Sending env LC_NUMERIC = he_IL.UTF-8 
debug1: Sending env LC_TELEPHONE = he_IL.UTF-8 
debug1: Sending env LC_IDENTIFICATION = he_IL.UTF-8 
debug1: Sending env LANG = en_US.UTF-8 
debug1: Sending env LC_MEASUREMENT = he_IL.UTF-8 
debug1: Sending env LC_TIME = he_IL.UTF-8 
debug1: Sending env LC_NAME = he_IL.UTF-8 
PTY allocation request failed on channel 0 
shell request failed on channel 0 

ssh_config를 :

Host heroku.com 
    HostName heroku.com 
    IdentityFile ~/.ssh/id_rsa 
    IdentitiesOnly yes 

내가 reall 이게 무슨 뜻인지 아는 사람?

+0

변경 사항을 시도하고 어떤 결과가 발생하는지 확인하십시오. 가이드를 다시 걸어보고 도움이되는지 확인하십시오. 그럼에도 불구하고 당신이 아직 그것을 얻을 수 없다면, 당신이 시도한 것과 그렇지 못한 것을 말해주십시오. 노력을 보여 주면 사람들이 도움을 줄 가능성이 더 큽니다. 또한 일반적으로 전체 질문을하면서 "전체 로그 :"를 피하십시오. 이 기사를 보시면 질문을 향상시키는 데 도움이됩니다. http://stackoverflow.com/help/mcve – 3ocene

+0

PTY 및 셸 요청 메시지는 서버가 대화식 세션을 시작할 의향이 없음을 의미합니다. 헤로쿠에게는 정상 일 겁니다. 링크 된 Heroku 페이지는 PTY 나 쉘을 필요로하지 않는 git 액세스를 위해 ssh를 사용하는 것에 대해 이야기합니다. 쉘 액세스가 효과가 있다고 생각하게 만드는 이유는 무엇입니까? – Kenster

답변

2

는 먼저 heroku toolbelt를 설치하고 툴 벨트에 로그인 한 후, 당신은 heroku run bash --app your_app_name

그것에 대해 Heroku가 워드 프로세서에 대한 here를 참조 실행하여 Heroku가 다이노에 ssh를 할 수 있습니다. ssh를 사용하면 거의 얻을 수 없다는 경고에도주의를 기울이십시오.