gpt4 book ai didi

rtc - 使用 'scm login' 时如何隐藏密码

转载 作者:行者123 更新时间:2023-12-04 12:59:29 27 4
gpt4 key购买 nike

http://pic.dhe.ibm.com/infocenter/rtc/v1r0m0/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Fc_scm_cli.html 所述,如何在使用“scm 登录”命令时隐藏密码?

我将命令作为脚本的一部分运行,它存在潜在的安全风险,允许将密码输出到命令窗口。

最佳答案

如果可以使用lscm ,如 this thread 中所述,您可以缓存所有后续 scm 运行的凭据。
但是(如 mentioned here )

lscm will start a daemon process, and scm is a one shot deal.
The daemon will load the SCM files and will reuse them on subsequent calls. That is the reason it can act poorly in automated environments.
If you are using many commands together and decide to use lscm, make sure to clean up the daemon process at the end of the script.
That will make sure the environment is clean for the next run.

或者:如果您至少使用scm 登录一次,如detailed here ,使用 -c 选项(在提示时缓存密码):

The cached password lives in ~/.jazz-scm/repositories.txt.

The cached password is protected by filesystem permissions, and is obfuscated with a cryptographic algorithm.

关于rtc - 使用 'scm login' 时如何隐藏密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13586193/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com