After generate SSH the error is showing:
Looks like you haven't configured your SSH settings yet.
? How would you like to connect to Ionic Pro? Automatically setup new a SSH key pair for Ionic Pro
The automatic SSH setup will do the following:
1) Generate a new SSH key pair with OpenSSH (will not overwrite any existing keys).
2) Upload the generated SSH public key to our server, registering it on your account.
3) Modify your SSH config (C:\Users\shadow\.ssh\config) to use the generated SSH private key for our server(s).
? May we proceed? Yes
> ionic ssh generate C:\Users\shadow\.ssh\ionic\441216
You will be prompted to provide a passphrase, which is used to protect your private key should you lose it. (If someone
has your private key, they can impersonate you!) Passphrases are recommended, but not required.
unknown key type rsa
[ERROR] Subprocess (ssh-keygen) encountered an error (exit code 255).
Whats wrong?
2 Likes
What command are you running?
Run the same one with --verbose
added at the end.
What is your ionic info
output?
my ionic info is:
[WARN] You are not in an Ionic project directory. Project context may be missing.
cli packages: (C:\Users\shadow\AppData\Roaming\npm\node_modules)
@ionic/cli-plugin-proxy : 1.5.7
@ionic/cli-utils : 1.19.1
ionic (Ionic CLI) : 3.19.1
System:
Node : v8.1.3
npm : 5.6.0
OS : Windows 10
Environment Variables:
HTTP_PROXY : not set
http_proxy : not set
HTTPS_PROXY : not set
https_proxy : not set
IONIC_HTTP_PROXY : not set
PROXY : not set
proxy : not set
Misc:
backend : pro
ionic start --pro-id b0000000 --verbose
[DEBUG] Reason for not using local CLI: BASE_DIRECTORY_NOT_FOUND
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: 'D:\\ionic', local: false, binPath:
'C:\\Users\\shadow\\AppData\\Roaming\\npm\\node_modules\\ionic\\bin\\ionic', libPath:
'C:\\Users\\shadow\\AppData\\Roaming\\npm\\node_modules\\ionic\\dist\\index.js' }
[DEBUG] Loading global plugin @ionic/cli-plugin-proxy
[DEBUG] Latest plugin version of @ionic/cli-plugin-proxy is 1.5.7, according to daemon file.
[DEBUG] Daemon found (pid: 17240)
Using petvida for name.
? What starter would you like to use: tabs
√ Creating directory .\petvida - done!
√ Downloading and extracting tabs starter - done!
? Would you like to integrate your new app with Cordova to target native iOS and Android? Yes
√ Personalizing ionic.config.json and package.json - done!
> ionic integrations enable cordova --quiet
√ Downloading integration cordova - done!
[DEBUG] Integration files downloaded to C:\Users\shadow\AppData\Local\Temp\ionic-integration-cordova (files: config.xml,
resources)
[DEBUG] Blacklist:
√ Copying integrations files to project - done!
[OK] Added cordova integration!
Installing dependencies may take several minutes.
* IONIC DEVAPP *
Speed up development with the Ionic DevApp, our fast, on-device testing mobile app
- Test on iOS and Android without Native SDKs
- LiveReload for instant style and JS updates
️--> Install DevApp: https://bit.ly/ionic-dev-app <--
> npm i
√ Running command - done!
> git init
> npm i --save -E @ionic/pro
√ Running command - done!
> ionic link b0000000
> ionic ssh setup
Looks like you haven't configured your SSH settings yet.
? How would you like to connect to Ionic Pro? Automatically setup new a SSH key pair for Ionic Pro
The automatic SSH setup will do the following:
1) Generate a new SSH key pair with OpenSSH (will not overwrite any existing keys).
2) Upload the generated SSH public key to our server, registering it on your account.
3) Modify your SSH config (C:\Users\shadow\.ssh\config) to use the generated SSH private key for our server(s).
? May we proceed? Yes
> i**onic ssh generate C:\Users\shadow\.ssh\ionic\441216**
**You will be prompted to provide a passphrase, which is used to protect your private key should you lose it. (If someone**
**has your private key, they can impersonate you!) Passphrases are recommended, but not required.**
**unknown key type rsa**
**[ERROR] Subprocess (ssh-keygen) encountered an error (exit code 255).**
Any solution to the problem described?
I’m facing the same issue. Looks like a bug.
1 Like
I have the same issue.
ionic info =
cli packages: (C:\Users\Govinda\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.1
ionic (Ionic CLI) : 3.19.1
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.1.8
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.2
System:
Node : v8.9.4
npm : 5.6.0
OS : Windows 10
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
ionic ssh setup --verbose =
[DEBUG] Reason for not using local CLI: LOCAL_CLI_NOT_FOUND
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: 'C:\\Users\\Govinda\\Documents\\VSCode\\IonicTutorials\\IonicShoppingList', local: false, binPath:
'C:\\Users\\Govinda\\AppData\\Roaming\\npm\\node_modules\\ionic\\bin\\ionic', libPath:
'C:\\Users\\Govinda\\AppData\\Roaming\\npm\\node_modules\\ionic\\dist\\index.js' }
[DEBUG] New daemon pid: 484312
Looks like you haven't configured your SSH settings yet.
? How would you like to connect to Ionic Pro? Automatically setup new a SSH key pair for Ionic Pro
The automatic SSH setup will do the following:
1) Generate a new SSH key pair with OpenSSH (will not overwrite any existing keys).
2) Upload the generated SSH public key to our server, registering it on your account.
3) Modify your SSH config (~\.ssh\config) to use the generated SSH private key for our server(s).
? May we proceed? Yes
> ionic ssh generate C:\Users\Govinda\.ssh\ionic\1230487
You will be prompted to provide a passphrase, which is used to protect your private key should you lose it. (If someone
has your private key, they can impersonate you!) Passphrases are recommended, but not required.
unknown key type rsa
[ERROR] Subprocess (ssh-keygen) encountered an error (exit code 255).
I got it working. I’m not really sure why this worked, but thought I would share anyway:
- open the Git Bash command line app (which came along with the Git install)
- copied the last command attempted by the ssh setup script (modified for bash),
ionic ssh generate /c/Users/Govinda/.ssh/ionic/1230487
- enter your passphrase
- this succeeded in generating the key files
-
git push ionic master
still wasn’t working
- followed the instructions output by the ssh generate command, and ran this:
ionic ssh add /c/Users/Govinda/.ssh/ionic/1230487.pub
- now the git push command works!
Hope this helps someone.
1 Like
Working in GitBash, no problem, no errors.
Use GitBash for it.
CLOSED TOPIC!