Ionic Pro: Git push ionic master fails with ssh error


#1

One of the first steps in configuring the new ionic pro is to push your master branch up to ionic.
This is what happens when I execute the command:

$>git push ionic master
ssh: connect to host git.ionicjs.com port 22: Connection refused
fatal: Could not read from remote repository.

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

Does anyone have any ideas as how to fix this?


Ionic Pro: No OpenSSH. Other alternative when uploading via Ionic CLI?
#2

Does your repo URL on ionicjs.com have uppercase letters? Replace then mit lowercase ones.


#3

I’m currently having the same issue and my repo URL does not have any uppercase letters, any ideas?

EDIT:
nevermind, my problem was the keypair during set up wasn’t created properly


#4

Last Friday morning I solved my ssh error. I even chatted the solution
back to you guys so you could archive the solution to make it easier for
you to assist the next poor shlub that has this ssh issue. My current
problem is with your/my build failing with an EACCES error (I have no idea
what that error means). I sent all the details of this error this morning
using the websites email system. I really need to get a successful build
soon. Please help me.

Thank you,
Michael Carr


#5

“You guys”? We are just some random people in the forum (Ionic Team is not very active here…) - and you didn’t post this here. If you do so, you can select the post as the official “solution” for this topic yourself and it then will be visiblae for the next person having a similar problem.

I suggest you post this new problem in a new topic - maybe someone else had the same one and tell you a bit more. If you get a reply from support before someone can help, you can still post the solution (again for future readers having similar problems).


#6

I generated the SSH using the ionic ssh setup. I am still having issue when running the git push ionic master "/.ssh/config line 3: garbage at end of line; “…\.ssh\ionic\743299_rsa”

I run ionic ssh setup using bash.

Any solution?


#7

@alltej @mdcarr
I solved it in Windows:-
I opened the file “some_user_folder/.ssh/config line”.
Then in the third line, I realised that the path had a space character in it.
I enclosed the whole path in double quotes and the command “ionic push ionic master” worked flawlessly.


#8

Nice.

Did you write this file yourself or is this a bug in the Ionic CLI that it can’t handle paths with spaces inside the .ssh/config line?


#9

When I linked my existing app and ran ionic ssh setup it created the config file as follow:

IdentityFile ~/.ssh/id_rsaHost git.ionicjs.com
IdentityFile C:\Users\ myname \.ssh\ionic\ somenumber

After Updating the first IdentityFile to Host it worked fine


#10

It can not handle spaces in the path


#11

Getting Error while using following command:git push ionic master
ssh_exchange_identification: read: Connection reset by peer
fatal: Could not read from remote repository.

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


#12

I have the same issue in mac. Could anyone please provide solution for mac as sahibvirk have provide for windows.


#13

21%20AM
This is the error message I am getting on my mac. Please provide me solution for mac.


#14

I have the same problem also !


#15

same issue here not able to push code

Bhumins-Mac-mini:project-blank$ git push ionic master
	ssh: Could not resolve hostname git.ionicjs.com: nodename nor servname provided, or not known
fatal: Could not read from remote repository.

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


#16

Same issue here, I reported it to the Ionic Pro support team twice who just gave me a generic response both times saying they don’t support the dev environment and that only Enterprise customers get that.

I responded by asking why would I pay for a service if it doesn’t even work on the free tier. :slight_smile:

I recommend avoiding Ionic View for testing and going straight to Android Beta / iOS TestFlight instead.

Not sure if you have noticed but users on iOS can’t use Ionic View on free tier at the moment anyway due to Apple pulling the app for the use of the shared codes for public channels.


#17

Having the same problem … on mac.

$ git push ionic master
git@git.ionicjs.com: Permission denied (publickey).
fatal: Could not read from remote repository.

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

This is how I solve my problems due to SHH_KEY problem.

  1. recreate my ssh key
$ ssh-keygen -t rsa -C “your@email.com
  1. Copy my ssh key and add to my ionic account SSH Key Setting. (Under user profile)
$ cat ~/.ssh/id_rsa.pub | pbcopy
  1. View my current SSH key folder
$ cd ~/.ssh 
$ ls 
  1. Look for ionic folder. If exist please follow next step else go to step 5
$ cd ionic
$ ls
  1. You will see a file with [0123456] & [0123456].pub inside the folder. delete all the files by using rm. replace [0123456] with the number found in your ionic folder
$ rm [0123456]
$ rm [0123456].pub
  1. Relogin your ionic account using ionic CLi
    $ ionic login

  2. After that just login using your ionic credentials. You should be prompted as follows:

Looks like you haven't configured your SSH settings yet.

? How would you like to connect to Ionic Pro? 
  1. I just choose : Automatically setup new a SSH key pair for Ionic Pro

  2. enter passphrase if required.

  3. Done!