2017년 7월 3일 월요일

git remote client setup test....log

ksp29@DESKTOP-AHO3C1P MINGW64 ~/Source/Repos/git_test (master)
$

ksp29@DESKTOP-AHO3C1P MINGW64 ~/Source/Repos/git_test (master)
$

ksp29@DESKTOP-AHO3C1P MINGW64 ~/Source/Repos/git_test (master)
$ git push --set-upstream test master
ssh: connect to host 192.168.1.4 port 443: Connection refused
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

ksp29@DESKTOP-AHO3C1P MINGW64 ~/Source/Repos/git_test (master)
$

ksp29@DESKTOP-AHO3C1P MINGW64 ~/Source/Repos/git_test (master)
$

ksp29@DESKTOP-AHO3C1P MINGW64 ~/Source/Repos/git_test (master)
$

ksp29@DESKTOP-AHO3C1P MINGW64 ~/Source/Repos/git_test (master)
$ git remote add test ssh://git@192.168.1.4/opt/git/public_git/test.git
fatal: remote test already exists.

ksp29@DESKTOP-AHO3C1P MINGW64 ~/Source/Repos/git_test (master)
$ git remote add test1 ssh://git@192.168.1.4/opt/git/public_git/test.git

ksp29@DESKTOP-AHO3C1P MINGW64 ~/Source/Repos/git_test (master)
$ git push --set-upstream test1 master
git@192.168.1.4's password:
Permission denied, please try again.
git@192.168.1.4's password:
Permission denied, please try again.
git@192.168.1.4's password:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

ksp29@DESKTOP-AHO3C1P MINGW64 ~/Source/Repos/git_test (master)
$ git remote add test2 ssh://root:git@192.168.1.4/opt/git/public_git/test.git

ksp29@DESKTOP-AHO3C1P MINGW64 ~/Source/Repos/git_test (master)
$ git push --set-upstream test2 master
root:git@192.168.1.4's password:
Permission denied, please try again.
root:git@192.168.1.4's password:
Counting objects: 3, done.
Writing objects: 100% (3/3), 211 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To ssh://192.168.1.4/opt/git/public_git/test.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from test2.

ksp29@DESKTOP-AHO3C1P MINGW64 ~/Source/Repos/git_test (master)
$



















[root@localhost ~]# ls
anaconda-ks.cfg  テンプレート  ドキュメント  音楽  公開
ダウンロード     デスクトップ  ビデオ        画像
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# ls -al
合計 96
dr-xr-x---. 16 root root 4096  7月  4 10:06 .
dr-xr-xr-x. 18 root root 4096  6月 23 22:38 ..
-rw-------.  1 root root 2480  7月  4 10:06 .ICEauthority
-rw-------.  1 root root 1624  7月  4 09:47 .bash_history
-rw-r--r--.  1 root root   18  6月  8  2014 .bash_logout
-rw-r--r--.  1 root root  176  6月  8  2014 .bash_profile
-rw-r--r--.  1 root root  176  6月  8  2014 .bashrc
drwx------. 15 root root 4096  7月  3 15:56 .cache
drwx------. 13 root root 4096  7月  2 16:49 .config
-rw-r--r--.  1 root root  100  6月  8  2014 .cshrc
drwx------.  2 root root 4096  7月  4 10:07 .gnupg
drwxr-xr-x.  3 root root 4096  2月 22 21:16 .local
drwx------.  4 root root 4096  2月 22 21:26 .mozilla
drwx------.  2 root root 4096  7月  2 16:49 .ssh
-rw-r--r--.  1 root root  129  6月  8  2014 .tcshrc
-rw-------.  1 root root 1656  2月 23 02:09 anaconda-ks.cfg
drwxr-xr-x.  2 root root 4096  2月 22 21:16 ダウンロード
drwxr-xr-x.  2 root root 4096  2月 22 21:16 テンプレート
drwxr-xr-x.  2 root root 4096  2月 22 21:16 デスクトップ
drwxr-xr-x.  2 root root 4096  2月 22 21:16 ドキュメント
drwxr-xr-x.  2 root root 4096  2月 22 21:16 ビデオ
drwxr-xr-x.  2 root root 4096  2月 22 21:16 音楽
drwxr-xr-x.  2 root root 4096  2月 22 21:16 画像
drwxr-xr-x.  2 root root 4096  2月 22 21:16 公開
[root@localhost ~]# pwd
/root
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cd /
[root@localhost /]# ls
bin   dev  home  lost+found  mnt  proc  run   srv  tmp  var
boot  etc  lib   media       opt  root  sbin  sys  usr
[root@localhost /]#
[root@localhost /]#
[root@localhost /]# sudo apt-get install git
sudo: apt-get: command not found
[root@localhost /]#
[root@localhost /]#
[root@localhost /]# yum install -y git
Yum command has been deprecated, redirecting to '/usr/bin/dnf install -y git'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'

Last metadata expiration check performed 0:00:01 ago on Tue Jul  4 10:17:24 2017.
Package git-2.4.0-1.fc22.i686 is already installed, skipping.
Dependencies resolved.
Nothing to do.
完了しました!
[root@localhost /]#
[root@localhost /]#
[root@localhost /]#
[root@localhost /]# useradd -s /usr/bin/git-shell git
[root@localhost /]#
[root@localhost /]#
[root@localhost /]# mkdir /home/git/.ssh
[root@localhost /]# touch /home/git/.ssh/authorized_keys
[root@localhost /]#
[root@localhost /]#
[root@localhost /]# chown -R git:git /home/git/.ssh
[root@localhost /]# chmod 700 /home/git/.ssh
[root@localhost /]# chmod 600 /home/git/.ssh/authorized_keys
[root@localhost /]#
[root@localhost /]#
[root@localhost /]#
[root@localhost /]# mkdir /opt/git
[root@localhost /]#
[root@localhost /]#
[root@localhost /]# mkdir /opt/git/sample.git
[root@localhost /]#
[root@localhost /]#
[root@localhost /]# cd /opt/git/sample.git/
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]# git init --bare
Initialized empty Git repository in /opt/git/sample.git/
[root@localhost sample.git]# chown -R git:git /opt/git/sample.git/
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]# ls
HEAD  branches  config  description  hooks  info  objects  refs
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]# cd ..
[root@localhost git]# ls
sample.git
[root@localhost git]#
[root@localhost git]#
[root@localhost git]#
[root@localhost git]#
[root@localhost git]# ls
sample.git
[root@localhost git]# cd ..
[root@localhost opt]# ls
git
[root@localhost opt]#
[root@localhost opt]#
[root@localhost opt]#
[root@localhost opt]#
[root@localhost opt]# cd git
[root@localhost git]# ls
sample.git
[root@localhost git]#
[root@localhost git]#
[root@localhost git]#
[root@localhost git]# ls
sample.git
[root@localhost git]#
[root@localhost git]#
[root@localhost git]# cd sample.git
[root@localhost sample.git]# ls
HEAD  branches  config  description  hooks  info  objects  refs
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]# cd info
[root@localhost info]# ls
exclude
[root@localhost info]#
[root@localhost info]# cd ..
[root@localhost sample.git]# ls
HEAD  branches  config  description  hooks  info  objects  refs
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]# ls
HEAD  branches  config  description  hooks  info  objects  refs
[root@localhost sample.git]#
[root@localhost sample.git]# cd head
-bash: cd: head: そのようなファイルやディレクトリはありません
[root@localhost sample.git]# cd HEAD
-bash: cd: HEAD: ディレクトリではありません
[root@localhost sample.git]# ls
HEAD  branches  config  description  hooks  info  objects  refs
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]# dir
HEAD  branches  config  description  hooks  info  objects  refs
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]# ls
HEAD  branches  config  description  hooks  info  objects  refs
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]# git remote -v
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]# ls
HEAD  branches  config  description  hooks  info  objects  refs
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]# ll
合計 32
-rw-r--r--. 1 git git   23  7月  4 10:19 HEAD
drwxr-xr-x. 2 git git 4096  7月  4 10:19 branches
-rw-r--r--. 1 git git   66  7月  4 10:19 config
-rw-r--r--. 1 git git   73  7月  4 10:19 description
drwxr-xr-x. 2 git git 4096  7月  4 10:19 hooks
drwxr-xr-x. 2 git git 4096  7月  4 10:19 info
drwxr-xr-x. 4 git git 4096  7月  4 10:19 objects
drwxr-xr-x. 4 git git 4096  7月  4 10:19 refs
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]# cd refs
[root@localhost refs]# ll
合計 8
drwxr-xr-x. 2 git git 4096  7月  4 10:19 heads
drwxr-xr-x. 2 git git 4096  7月  4 10:19 tags
[root@localhost refs]#
[root@localhost refs]# cd heads
[root@localhost heads]# ll
合計 0
[root@localhost heads]#
[root@localhost heads]# cd ..
[root@localhost refs]# ls
heads  tags
[root@localhost refs]# cd tags
[root@localhost tags]# ll
合計 0
[root@localhost tags]# cd ..
[root@localhost refs]# cd ..
[root@localhost sample.git]# ll
合計 32
-rw-r--r--. 1 git git   23  7月  4 10:19 HEAD
drwxr-xr-x. 2 git git 4096  7月  4 10:19 branches
-rw-r--r--. 1 git git   66  7月  4 10:19 config
-rw-r--r--. 1 git git   73  7月  4 10:19 description
drwxr-xr-x. 2 git git 4096  7月  4 10:19 hooks
drwxr-xr-x. 2 git git 4096  7月  4 10:19 info
drwxr-xr-x. 4 git git 4096  7月  4 10:19 objects
drwxr-xr-x. 4 git git 4096  7月  4 10:19 refs
[root@localhost sample.git]#
[root@localhost sample.git]# cd info
[root@localhost info]# l
bash: l: コマンドが見つかりませんでした...
l


^Z
[1]+  停止                  l
[root@localhost info]# ll
合計 4
-rw-r--r--. 1 git git 240  7月  4 10:19 exclude
[root@localhost info]#
[root@localhost info]# cd ..
[root@localhost sample.git]# ll
合計 32
-rw-r--r--. 1 git git   23  7月  4 10:19 HEAD
drwxr-xr-x. 2 git git 4096  7月  4 10:19 branches
-rw-r--r--. 1 git git   66  7月  4 10:19 config
-rw-r--r--. 1 git git   73  7月  4 10:19 description
drwxr-xr-x. 2 git git 4096  7月  4 10:19 hooks
drwxr-xr-x. 2 git git 4096  7月  4 10:19 info
drwxr-xr-x. 4 git git 4096  7月  4 10:19 objects
drwxr-xr-x. 4 git git 4096  7月  4 10:19 refs
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]# cd branches
[root@localhost branches]# ll
合計 0
[root@localhost branches]#
[root@localhost branches]#
[root@localhost branches]# cd ..
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]# iptables -I INPUT -p tcp -m state --state NEW --dport 443 -j ACCEPT
[root@localhost sample.git]# service sshd restart
Redirecting to /bin/systemctl restart  sshd.service
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]# ls
HEAD  branches  config  description  hooks  info  objects  refs
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]# ls
HEAD  branches  config  description  hooks  info  objects  refs
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]#
[root@localhost sample.git]# cd ..
[root@localhost git]#
[root@localhost git]#
[root@localhost git]# ls
sample.git
[root@localhost git]#
[root@localhost git]#
[root@localhost git]# mkdir public_git
[root@localhost git]# ls
public_git  sample.git
[root@localhost git]#
[root@localhost git]#
[root@localhost git]# mkdir public_git/test.git
[root@localhost git]# cd public_git_test.git
-bash: cd: public_git_test.git: そのようなファイルやディレクトリはありません
[root@localhost git]#
[root@localhost git]#
[root@localhost git]#
[root@localhost git]# ls
public_git  sample.git
[root@localhost git]#
[root@localhost git]#
[root@localhost git]# cd public_git
[root@localhost public_git]# ls
test.git
[root@localhost public_git]#
[root@localhost public_git]#
[root@localhost public_git]# cd test.git
[root@localhost test.git]# ls
[root@localhost test.git]#
[root@localhost test.git]#
[root@localhost test.git]# git --bare init --shared
Initialized empty shared Git repository in /opt/git/public_git/test.git/
[root@localhost test.git]#
[root@localhost test.git]#
[root@localhost test.git]#
[root@localhost test.git]#
[root@localhost test.git]# ls
HEAD  branches  config  description  hooks  info  objects  refs
[root@localhost test.git]# cd ..
[root@localhost public_git]# lsl
bash: lsl: コマンドが見つかりませんでした...
[root@localhost public_git]#
[root@localhost public_git]#
[root@localhost public_git]# ls
test.git
[root@localhost public_git]#
[root@localhost public_git]#
[root@localhost public_git]# cd ..
[root@localhost git]# ls
public_git  sample.git
[root@localhost git]#
[root@localhost git]#
[root@localhost git]# groupadd git
groupadd: グループ 'git' は既に存在します
[root@localhost git]#
[root@localhost git]#
[root@localhost git]#
[root@localhost git]#
[root@localhost git]# usermod -G wheel,git hachinobu
usermod: ユーザ 'hachinobu' は存在しません
[root@localhost git]#
[root@localhost git]#
[root@localhost git]#
[root@localhost git]#
[root@localhost git]# ls
public_git  sample.git
[root@localhost git]# cd public _git
-bash: cd: public: そのようなファイルやディレクトリはありません
[root@localhost git]# cd public_git
[root@localhost public_git]#
[root@localhost public_git]#
[root@localhost public_git]# ls
test.git
[root@localhost public_git]#
[root@localhost public_git]# cd test.git
[root@localhost test.git]# ls
HEAD  branches  config  description  hooks  info  objects  refs
[root@localhost test.git]#
[root@localhost test.git]#
[root@localhost test.git]# cd refs
[root@localhost refs]# ls
heads  tags
[root@localhost refs]#
[root@localhost refs]# cd heads
[root@localhost heads]# ls
[root@localhost heads]#
[root@localhost heads]# cd ..
[root@localhost refs]# cd ..
[root@localhost test.git]# cd ..
[root@localhost public_git]# ls
test.git
[root@localhost public_git]#
[root@localhost public_git]#
[root@localhost public_git]# cd ..
[root@localhost git]#
[root@localhost git]#
[root@localhost git]# ls
public_git  sample.git
[root@localhost git]# pwd
/opt/git
[root@localhost git]#
[root@localhost git]#
[root@localhost git]#
[root@localhost git]#
[root@localhost git]# ls
public_git  sample.git
[root@localhost git]#
[root@localhost git]#
[root@localhost git]# cd public_git
[root@localhost public_git]# ls
test.git
[root@localhost public_git]#
[root@localhost public_git]# cd test.git
[root@localhost test.git]# ls
HEAD  branches  config  description  hooks  info  objects  refs
[root@localhost test.git]#
[root@localhost test.git]# cd refs
[root@localhost refs]# ls
heads  tags
[root@localhost refs]#
[root@localhost refs]# cd heads
[root@localhost heads]# ls
master
[root@localhost heads]#
[root@localhost heads]#
[root@localhost heads]# cd master
-bash: cd: master: ディレクトリではありません
[root@localhost heads]# ls
master
[root@localhost heads]# ll
合計 4
-rw-rw-r--. 1 root root 41  7月  4 11:08 master
[root@localhost heads]#
[root@localhost heads]#
[root@localhost heads]#
[root@localhost heads]#
[root@localhost heads]#

댓글 없음:

댓글 쓰기