Using 'scm login' command with -c option (cache pw)
Kot T. (1.5k●1●13●19)
| asked Oct 24 '11, 4:13 p.m.
JAZZ DEVELOPER retagged Oct 23 '18, 3:55 p.m. by Ken Tessier (841●1●7) When using 'scm login' command with -c option (cache the password on prompt), where is the password cached and is it encrypted? |
Accepted answer
As Evan mentioned, the cached password lives in: ~/.jazz-scm/repositories.txt. The cached password is protected by filesystem permissions, and is obfuscated with a cryptographic algorithm
Also note that in RTC 6.0.3 a feature was added that lets you create an encrypted password file and later use that during the login (instead of manually having to type in the password and have it cached on disk). This feature was added in the following work item: Provide a way to login using CLI by specifying password encrypted file and not the password itself (295660)
Per the help documentation (https://www.ibm.com/support/knowledgecenter/SSCP65_6.0.5/com.ibm.team.scm.doc/topics/login.html) :
-You would use 'scm login --generatePasswordFile <path_to_file>' to first generate the password file.
-Then once generated, this file can be re-used at any time using 'scm login --password-file <path_to_file>'.
Note: This password file is encrypted, and thus we do not allow users to create it by 'hand' (which would defeat the purpose of encoding it in the first place). Ralph Schoon selected this answer as the correct answer
|
One other answer
When using "scm login" command with -c option (cache the password on prompt), where is the password cached and is it encrypted? The cached password lives in ~/.jazz-scm/repositories.txt. The cached password is protected by filesystem permissions, and is obfuscated with a cryptographic algorithm. e |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.