2016-10-11 5 views
0

「PTYの割り当て要求がチャネル0で失敗しました」私はHerokuの(アクセスコマンドライン)にsshをしようとしています... 私はhttps://devcenter.heroku.com/articles/keysでinstuctionsに従ったが、私はこのエラーを取得しておいてください。のssh Herokuのエラーが

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にとっては普通のことかもしれない。あなたがリンクしているHerokuページは、sshをgitアクセスに使用することについて話しています。これはPTYやシェルを必要としません。あなたはシェルアクセスがうまくいくと思いますか? – Kenster

答えて

2

最初heroku toolbeltをインストールすることにより、Herokuのダイナモにsshをすることができますし、ツールベルトにログインした後、あなたはheroku run bash --app your_app_name

それについてHerokuのドキュメントのためのhereを参照してくださいを実行することができます。彼らの警告に注意を払うsshを使用して得ることはほとんどないと言っても、

関連する問題