It's all about the answers!

Ask a question

Using 'scm login' command with -c option (cache pw)


2
2
Kot T. (1.5k11219) | asked Oct 24 '11, 4:13 p.m.
JAZZ DEVELOPER
retagged Oct 23 '18, 3:55 p.m. by Ken Tessier (84117)

When using 'scm login' command with -c option (cache the password on prompt), where is the password cached and is it encrypted?

Accepted answer


permanent link
David Lafreniere (4.8k7) | answered Oct 10 '18, 10:28 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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)

-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



permanent link
Evan Hughes (2.4k1318) | answered Oct 31 '11, 11:31 a.m.
JAZZ DEVELOPER
When using &quot;scm login&quot; 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


Register or to post 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.