yongjhih / docker-parse-server

Provide docker images and docker stack for parse-server npm versions and latest commit
https://hub.docker.com/r/yongjhih/parse-server/
Apache License 2.0
475 stars 166 forks source link

clone error, fatal: protocol error: bad line length character: The #10

Open oblank opened 8 years ago

oblank commented 8 years ago

git clone ssh://git@121.xx.xxx.5/parse-cloud-code
Cloning into 'parse-cloud-code'...
fatal: protocol error: bad line length character: 
The
ssh -T git@121.xx.xxx.5 -p 2022                       

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

I change repository URL to git@121.xx.xxx.5:2022/parse-cloud-code , no prefix ssh://

git clone git@121.xx.xxx.5:2022/parse-cloud-code 

Cloning into 'parse-cloud-code'...
FATAL: R any 2022/parse-cloud-code oblank DENIED by fallthru
(or you mis-spelled the reponame)
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
yongjhih commented 8 years ago

Did you try the following commands?

$ docker exec -i parse-server ssh-add-key < ~/.ssh/id_rsa.pub # add ssh-key for auth
$ git clone ssh://git@localhost:2022/parse-cloud-code # clone via specific port of ssh
oblank commented 8 years ago

yes, but useless the difference is my docker instance is running on a remote server, and ssh-key is my local Mac's git command be run on my local machine.

yongjhih commented 8 years ago

Steps of git deploy on remote:

  1. Generate Mac's ssh key if not exsit, on Mac: $ ssh-keygen
  2. Copy Mac's ssh key to clipboard, on Mac: $ cat ~/.ssh/id_rsa.pub
  3. Add Mac's ssh key (paste from clipboard), on docker-host: $ echo "ssh-rsa AAAAB3...XXX== your@mac" | docker exec -i parse-server ssh-add-key
  4. git clone parse-cloud-code, on Mac: $ git clone ssh://git@{docker-host-ip}:2022/parse-cloud-code
oblank commented 8 years ago

same error. finally I run docker instance on local machine, success with no any strange error. confused

thx.

katopz commented 7 years ago

duplicated? https://github.com/yongjhih/docker-parse-server/issues/77#issuecomment-262749354