git创建密匙时报错Too many arguments
来源:互联网 发布:http 获取mac地址 编辑:程序博客网 时间:2024/05/29 15:27
如题:git创建密匙时报错Too many arguments。
最近换了电脑,所以git需要重新创建密匙,运行命令ssh-keygen -t rsa -C “123456789@qq.com”时报错:
Too many arguments.usage: ssh-keygen [-q] [-b bits] [-t dsa | ecdsa | ed25519 | rsa | rsa1] [-N new_passphrase] [-C comment] [-f output_keyfile] ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile] ssh-keygen -i [-m key_format] [-f input_keyfile] ssh-keygen -e [-m key_format] [-f input_keyfile] ssh-keygen -y [-f input_keyfile] ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile] ssh-keygen -l [-v] [-E fingerprint_hash] [-f input_keyfile] ssh-keygen -B [-f input_keyfile] ssh-keygen -D pkcs11 ssh-keygen -F hostname [-f known_hosts_file] [-l] ssh-keygen -H [-f known_hosts_file] ssh-keygen -R hostname [-f known_hosts_file] ssh-keygen -r hostname [-f input_keyfile] [-g] ssh-keygen -G output_file [-v] [-b bits] [-M memory] [-S start_point] ssh-keygen -T output_file -f input_file [-v] [-a rounds] [-J num_lines] [-j start_line] [-K checkpt] [-W generator] ssh-keygen -s ca_key -I certificate_identity [-h] [-n principals] [-O option] [-V validity_interval] [-z serial_number] file ... ssh-keygen -L [-f input_keyfile] ssh-keygen -A ssh-keygen -k -f krl_file [-u] [-s ca_public] [-z version_number] file ... ssh-keygen -Q -f krl_file file ...
网上有说加引号包装,我也是醉了。后来还是自己找的:
Wrong dash symbol "–
" in arguments; options are started with "-
" (minus sign, ASCII code 0x2D). Here follows the same command with correct characters:
$ ssh-keygen -t rsa -C "myEmail@gmail.com"Generating public/private rsa key pair.
很明显,是因为“-”的问题,弄了一天也是醉了,还好问题解决了。希望能给大家带来帮助! 阅读全文
0 0
- git创建密匙时报错Too many arguments
- Git: bash: cd: too many arguments
- Too many input arguments.
- shell [: too many arguments
- Too many input arguments.
- too many positional arguments
- shell test(too many arguments)
- objc_msgSend() 报错: too many arguments to function call
- shell脚本,判断语句报错[: too many arguments
- objc_msgSend()报错Too many arguments to function call
- iOS objc_msgSend()报错Too many arguments to function call
- 批量入库时报错:prepared statement contains too many placeholders
- 批量入库时报错:prepared statement contains too many placeholders
- ./runInstaller: line 50: [: too many arguments
- 【转】bash中的错误 too many arguments
- Error using pdist2 Too many input arguments
- too many input arguments 问题解决 matlab
- too many arguments to function call
- 决策树之ID3,C4.5
- 2016 Top 10 Android Library
- 编程之美2.7 最大公约数问题
- 分区和分表的区别和各自的优缺点
- POJ 1690 (Your)((Term)((Project))) 笔记
- git创建密匙时报错Too many arguments
- 51nod 1274 最长递增路径(dp)
- 总结和分析几种判断RecyclerView到达底部的方法
- 如何利用LoadRunner最高效的批量制造MySQL数据
- 查看linux系统的cpu个数线程数量以及型号
- 什么是跨域?
- 每日分享之《不吐不快》
- Linux netstat命令详解
- iOS之网页缓存html----NSURLCache-----NSURLProtocol