mina-deploy / mina

Blazing fast deployer and server automation tool
https://rubygems.org/gems/mina
Other
4.34k stars 491 forks source link

Connection to closed after mina setup #607

Closed tesths closed 4 years ago

tesths commented 6 years ago

The output.

$ if ! ssh-keygen -H -F gitlab.com &>/dev/null; then
  ssh-keyscan -t rsa -p 22 -H gitlab.com >> ~/.ssh/known_hosts
fi
# gitlab.com:22 SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
Connection to 182.161.x.x closed.

And I use git clone command is normal.

lautarocastillo commented 5 years ago

Same problem here! I'm getting this response for mina setup -v


ssh-keyscan -t rsa -p 22 -H bitbucket.org >> ~/.ssh/known_hosts
 fi
 # bitbucket.org:22 SSH-2.0-conker_1.1.15-49a70a8 app-128
Connection to my_host.com closed. ```
lautarocastillo commented 5 years ago

This is the response for mina -v git:clone


Cloning into bare repository '/home/deploy/my_app3/scm'...
remote: Counting objects: 14865, done.
remote: Compressing objects: 100% (10452/10452), done.
remote: Total 14865 (delta 3473), reused 14737 (delta 3415)
Receiving objects: 100% (14865/14865), 85.56 MiB | 10.60 MiB/s, done.   
Resolving deltas: 100% (3473/3473), done.
-----> Using git branch 'master'
$ git clone "/home/deploy/my_app3/scm" . --recursive --branch "master"
fatal: destination path '.' already exists and is not an empty directory.
-----> Using this git commit
$ git rev-parse HEAD > .mina_git_revision
fatal: Not a git repository (or any of the parent directories): .git
$ git --no-pager log --format="%aN (%h):%n> %s" -n 1
fatal: Not a git repository (or any of the parent directories): .git
$ rm -rf .git
Connection to my_app3.host.com closed.```
NBuhinicek commented 4 years ago

This looks fine to me.

The connection to xyz closed. is just a notification from the ssh connection being closed.