Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 正在为github生成SSH密钥:“0”;zsh:未找到命令:$";_Macos_Github_Ssh_Iterm - Fatal编程技术网

Macos 正在为github生成SSH密钥:“0”;zsh:未找到命令:$";

Macos 正在为github生成SSH密钥:“0”;zsh:未找到命令:$";,macos,github,ssh,iterm,Macos,Github,Ssh,Iterm,我正在尝试用macOS系统配置github。我使用iTerm和zsh。当我尝试根据来自的指令生成新的ssh密钥时,我得到一个错误“zsh:command not found:$”。请帮助。$是您在sh中看到的内容。在zsh中您可能会看到[path@user]$或类似的东西。你只是不能复制这个美元符号。您应仅通过以下方式复制内容: ssh-keygen -t rsa -b 4096 -C "your_email@example.com" 这回答了你的问题吗?这是一个合理的问题。我在Macbook

我正在尝试用macOS系统配置github。我使用iTerm和zsh。当我尝试根据来自的指令生成新的ssh密钥时,我得到一个错误“zsh:command not found:$”。请帮助。

$
是您在sh中看到的内容。在zsh中您可能会看到
[path@user]$
或类似的东西。你只是不能复制这个美元符号。您应仅通过以下方式复制内容:

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

这回答了你的问题吗?这是一个合理的问题。我在Macbook上安装了一个新的操作系统。我的第一步是从默认终端ssh。嗯,MacBookM1有Rosetta作为支持。第一个ssh超时,因此受支持。我一按指南上的步骤走,它就吹走了
zsh:command-not-found:ssh
我想知道@mentol是否解决了这个问题?