zoukankan      html  css  js  c++  java
  • Git创建ssh密匙时报错Too many arguments解决方法

    原文链接:https://blog.csdn.net/qq_31165799/article/details/72832269

    如题:git创建密匙时报错Too many arguments。

    运行命令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.

    很明显,是因为“-”的问题,弄了一天也是醉了,还好问题解决了。希望能给大家带来帮助!

  • 相关阅读:
    libxml2 使用教程【转】
    c++实现Xml和json互转【转】
    C++中JSON的使用详解【转】
    Libxml2函数及使用方法概述【转】
    首个threejs项目-前端填坑指南【转】
    如何使用chrome自带的Javascript调试工具 【转】
    require.js 最佳实践【转】
    Cesium中导入三维模型方法(dae到glft/bgltf) 【转】
    华为ap3010DN-V2刷出胖AP并配置接入POE交换机实现上网
    k8s cronjob设置作业失败后退出不重复执行
  • 原文地址:https://www.cnblogs.com/yinminbo/p/11810146.html
Copyright © 2011-2022 走看看