mosh 1.2.5をCentOS6/AmazonLinuxにrpmでインストールする
mosh 1.2.5を使いたい。
epelにはcentos7系には既に入っている。
centos6とcentos6ベースのAmazon Linux(2015.09含む)は、まだepelでも1.2.4のまま。
2015/11時点での話なのでいずれ入るでしょうが、el7のepelからsrcを持って来てビルドします。
wget http://dl.fedoraproject.org/pub/epel/7/SRPMS/m/mosh-1.2.5-1.el7.src.rpm yum -y install rpm-build rpmdevtools protobuf-compiler protobuf-devel libutempter-devel zlib-devel ncurses-devel openssh-clients perl-IO-Tty openssl-devel gcc gcc-c++ rpmbuild --rebuild mosh-1.2.5-1.el7.src.rpm # centos6 yum install rpmbuild/RPMS/x86_64/mosh-1.2.5-1.el6.x86_64.rpm # amazon linux yum install rpmbuild/RPMS/x86_64/mosh-1.2.5-1.amzn1.x86_64.rpm
# yum list |grep mosh mosh.x86_64 1.2.5-1.amzn1 @/mosh-1.2.5-1.amzn1.x86_64
完了。
git cloneしたらERROR: Repository not found.
githubを使おうとして、git cloneでssh経由でのcloneが失敗した。
ERROR: Repository not found. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
HTTPSではclone成功しているので、権限がないとかではなさそう。
cloneが失敗するので、remoteが間違っているよとかでもない。
ssh鍵の再登録などしても変化なし。
https://help.github.com/articles/error-repository-not-found/
ssh -T git@github.com
やってみろと。
> ssh -T git@github.com Hi [username]! You've successfully authenticated, but GitHub does not provide shell access.
結論から言うと、.ssh/configの記述が間違っていて想定するユーザーとkeyになっていなかった。
この確認はsshコマンドなので、-vオプションが使える。
ssh -v -T git@github.com
ユーザーを直して確認して、正常になりました。
port 22 が使えない環境でも以下のように確認が使えるようだ。
ssh -p 443 -T git@ssh.github.com
Gitが、おもしろいほどわかる基本の使い方33〈バージョン管理、SourceTree、Bitbucket〉
- 作者: 大串肇,久保靖資,豊沢泰尚
- 出版社/メーカー: エムディエヌコーポレーション
- 発売日: 2015/05/26
- メディア: 単行本
- この商品を含むブログ (3件) を見る