
###発生している問題
gitlabのsshに接続できません
git cloneを行おうとしてもエラーが発生してしまいます。
###エラーメッセージ
shell
ssh
1HOST:~ USER$ git clone git@HOST:USERNAME/REPO.git 2Cloning into 'REPO'... 3Write failed: Broken pipe 4fatal: Could not read from remote repository. 5 6Please make sure you have the correct access rights 7and the repository exists. 8
/var/log/secure
log
1DATE HOST sshd[20456]: Accepted publickey for git from IP port PORT ssh2: RSA finger 2DATE HOST sshd[20456]: pam_unix(sshd:session): session opened for user git by (uid=0) 3DATE HOST sshd[20456]: fatal: safely_chroot: stat("/home/git/"): No such file or directory [postauth] 4DATE HOST sshd[20456]: pam_unix(sshd:session): session closed for user git
###バージョン等
GitLab 8.1.0
GitLab Shell 2.6.5
GitLab API v3
Ruby 2.1.7p400
Rails 4.1.12
CentOS7
###補足
gitlabは公式ドキュメントに従い、yumを使用してインストールしました。
https://about.gitlab.com/downloads/#centos7
ですから、/home/gitなんて存在しないはずなのですが、よくわかりません。
sshで接続してみましたが、Broken pipeで切断されますが、どうやら認証自体は成功しているようです。
shell
1ssh -vT git@HOST 2 3OpenSSH_6.9p1, LibreSSL 2.1.7 4debug1: Reading configuration data /etc/ssh/ssh_config 5debug1: /etc/ssh/ssh_config line 20: Applying options for * 6debug1: /etc/ssh/ssh_config line 102: Applying options for * 7debug1: Connecting to HOST [IP] port 22. 8debug1: Connection established. 9debug1: key_load_public: No such file or directory 10debug1: identity file /Users/USER/.ssh/id_rsa type -1 11debug1: key_load_public: No such file or directory 12debug1: identity file /Users/USER/.ssh/id_rsa-cert type -1 13debug1: key_load_public: No such file or directory 14debug1: identity file /Users/USER/.ssh/id_dsa type -1 15debug1: key_load_public: No such file or directory 16debug1: identity file /Users/USER/.ssh/id_dsa-cert type -1 17debug1: key_load_public: No such file or directory 18debug1: identity file /Users/USER/.ssh/id_ecdsa type -1 19debug1: key_load_public: No such file or directory 20debug1: identity file /Users/USER/.ssh/id_ecdsa-cert type -1 21debug1: key_load_public: No such file or directory 22debug1: identity file /Users/USER/.ssh/id_ed25519 type -1 23debug1: key_load_public: No such file or directory 24debug1: identity file /Users/USER/.ssh/id_ed25519-cert type -1 25debug1: Enabling compatibility mode for protocol 2.0 26debug1: Local version string SSH-2.0-OpenSSH_6.9 27debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1 28debug1: match: OpenSSH_6.6.1 pat OpenSSH_6.6.1* compat 0x04000000 29debug1: Authenticating to HOST:22 as 'git' 30debug1: SSH2_MSG_KEXINIT sent 31debug1: SSH2_MSG_KEXINIT received 32debug1: kex: server->client chacha20-poly1305@openssh.com <implicit> none 33debug1: kex: client->server chacha20-poly1305@openssh.com <implicit> none 34debug1: expecting SSH2_MSG_KEX_ECDH_REPLY 35debug1: Server host key: ssh-rsa SHA256:KEY 36debug1: Host 'HOST' is known and matches the RSA host key. 37debug1: Found key in /Users/USER/.ssh/known_hosts:3 38debug1: SSH2_MSG_NEWKEYS sent 39debug1: expecting SSH2_MSG_NEWKEYS 40debug1: SSH2_MSG_NEWKEYS received 41debug1: Roaming not allowed by server 42debug1: SSH2_MSG_SERVICE_REQUEST sent 43debug1: SSH2_MSG_SERVICE_ACCEPT received 44debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic 45debug1: Next authentication method: publickey 46debug1: Offering RSA public key: /Users/USER/.ssh/id_rsa 47debug1: Server accepts key: pkalg ssh-rsa blen 279 48debug1: Authentication succeeded (publickey). 49Authenticated to HOST ([IP]:22). 50debug1: channel 0: new [client-session] 51debug1: Requesting no-more-sessions@openssh.com 52debug1: Entering interactive session. 53packet_write_wait: Connection to IP: Broken pipe

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2015/10/25 15:55
2015/10/26 02:26
退会済みユーザー
2015/10/26 04:30 編集