Closed FALLAI-Denis closed 8 months ago
Hello! It’s possible you have an incorrect password for the SSH profile. When you use ZOSMF, an SSH profile needs to be configured to run certain commands.
It’s possible your Zowe Team Config Profile is configured in such a way that you need to separately specify passwords for different profiles.
Also, the extension is suppose to prompt for credentials if any of the profiles have incorrect credentials. Do you not get a prompt at the top of the editor?
Hi @kristinochka
No, no prompt for credentials...
I use "user config" for Zowe, from C:\Users\<user>\.zowe\zowe.config.json
(Windows context).
For SSH, I use a key to connect to mainframe.
"TMVS": {
"type": "zosmf",
"properties": {
"host": "tmvs",
"port": 8444,
"rejectUnauthorized": false,
"encoding": "1147"
},
"secure": [
"user",
"password"
]
},
"TMVS-SSH": {
"type": "ssh",
"properties": {
"host": "TMVS",
"port": 22,
"user": "J070188",
"privateKey": "C:\\Users\\S0070188\\.ssh\\id_rsa"
},
"secure": [
"password"
]
},
"autoStore": true
Test of SSH profile from the same folder as "run setup for IBM User Build":
Test of zOSMF profile from the same folder as "run setup for IBM User Build":
Note that the password is indicated in the SSH profile because it is required even if an SSH key is used to connect (and in this case the password is not used). To see if ZOE uses the connection by key and not the connection by password, because it is certain that the password memorized for the profile is not kept up to date. See:
Is there a way to enable a verbose log on the User Build process?
I am able to reproduce the issue when using an ssh key.
Hi,
We need to use the IBM User Build feature right now... Is there any plan to correct this anomaly in the near future? What workaround? switch to user/password management for ssh instead of user/public key?
@FALLAI-Denis yes, the workaround is to use passwords for now. This bug is a high priority for us to fix.
@FALLAI-Denis with Z Open Editor v3.3.0 we added full support for SSH keys. Let us know if this now works for you.
Development environment used
Problem Description
The "run setup for IBM User build" hangs on validating the password of the z/OSMF profile used.
However, the password is well saved for the profile since the copybooks are well accessed and the use of Zowe Explorer with this profile works without problem.
The feature has worked in the past and no longer works today. In the meantime there have been updates to Z Open Editor, Zowe Explorer, Zowe CLI.
Detailed steps for reproducing the problem:
Observed behavior
The script freezes for 10 minutes then an error message concerning the validation of the password appears.