以下配置有效:
machine code.mycompany.net
login supernerd
password HelloW0rld
以下配置不起作用:
machine code.mycompany.net
login supernerd
password Please excuse my dear aunt sally.
最佳答案
从这里bug report或 this page ,密码中的空格似乎在 .netrc(
或 _netrc
)文件中不受支持。
或者即使它们是,并非所有使用该 .netrc
文件的程序都能够正确解释所述空间。
作为runrig提及 in the comments :
Quoting the field as in another answer here should work, but the python library doesn't like it.
But, e.g., command lineftp
and theperl netrc
library is fine with it.
所以这应该在使用这些命令时起作用:
password "Please excuse my dear aunt sally."
关于git - _netrc 可以处理带空格的密码吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12674888/