I followed all the steps to convert my legacy Ionic View app into this pro view, I linked with new Ionic Pro dashboard app Id , Created SSH Keys , All command working fine except - git push ionic master
Everytime it shows timeout error, Old Ionic View used to work like charm , never faced any issue , just $ionic upload and app available for sync. but this new git integration proves to be disappointing , So many places this issue is reported but nowhere it is resolved.
ssh: connect to host git.ionicjs.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
1 Like
Your ssh keys are probably not working.
You may need to rename your .ssh folder and try again.
If you’re on Windows it’s easier to use Git Bash for this as it includes all the ssl stuff.
This is how i am creating SSH keys , from gitbash ,
Maliick@DESKTOP-0T6P155 MINGW64 /c/AngularProjects/feedtalk2/Feedtalk_APP (maste r)
$ ionic ssh setup
? SSH setup wizard has run before. Would you like to run it again? (Y/n) y
? SSH setup wizard has run before. Would you like to run it again? Yes
? How would you like to connect to Ionic Pro? (Use arrow keys)
? How would you like to connect to Ionic Pro? Automatically setup new a SSH key
pair for Ionic Pro
[INFO] The automatic SSH setup will do the following:
1) Generate a new SSH key pair with OpenSSH (will not overwrite any exist ing keys).
2) Upload the generated SSH public key to our server, registering it on y our account.
3) Modify your SSH config (..\..\..\Users\Maliick\.ssh\config) to use the generated SSH private key for our server(s).
? May we proceed? (Y/n) y
? May we proceed? Yes
> ionic ssh generate C:\Users\Maliick\.ssh\ionic\674939_rsa
[INFO] You will be prompted to provide a passphrase, which is used to protect yo ur private key should you lose it. (If someone has your private key, they can im personate you!) Passphrases are recommended, but not required.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
[OK] A new pair of SSH keys has been generated!
Private Key (..\..\..\Users\Maliick\.ssh\ionic\674939_rsa): Keep this safe!
Public Key (..\..\..\Users\Maliick\.ssh\ionic\674939_rsa.pub): Give this to all your friends!
[INFO] Next steps:
- Add your public key to Ionic: ionic ssh add ..\..\..\Users\Maliick\.ssh \ionic\674939_rsa.pub
- Use your private key for secure communication with Ionic: ionic ssh use ..\..\..\Users\Maliick\.ssh\ionic\674939_rsa
> ionic ssh add C:\Users\Maliick\.ssh\ionic\674939_rsa.pub --use
[OK] Your public key (SHA256:AVrPMHMrOniYEwjK98DJbdKGxfdZ+EY7l3cumru0VgA) has be en added to Ionic!
> ionic ssh use C:\Users\Maliick\.ssh\ionic\674939_rsa
[INFO] C:\Users\Maliick\.ssh\ionic\674939_rsa is already your active SSH key.
[OK] SSH setup successful!
Maliick@DESKTOP-0T6P155 MINGW64 /c/AngularProjects/feedtalk2/Feedtalk_APP (maste r)
$ git push ionic master
ssh: connect to host git.ionicjs.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Maliick@DESKTOP-0T6P155 MINGW64 /c/AngularProjects/feedtalk2/Feedtalk_APP (maste r)
$ git push ionic master
ssh: connect to host git.ionicjs.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Can you try creating a brand new project in Ionic Pro, and following the instructions to create the local copy that they give you - then try git pushing that.
Just to eliminate anything badly configured in your present app.
Tried new checkout from a existing legacy Ionic View app but same problem , Will try a blank app that with $ionic start command.
Any specific rules for passphrase ? can we leave it blank ?
Put in a passphrase.
Make it complex and keep it safe.