Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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

2

2 votes


Accepted answer

Permanent link
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

0 votes


One other answer

Permanent link
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

2 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,017
× 1,381
× 1,202
× 158
× 30

Question asked: Oct 24 '11, 4:13 p.m.

Question was seen: 9,950 times

Last updated: Oct 23 '18, 3:55 p.m.

Confirmation Cancel Confirm