我的第一次 SSH 连接有问题。是的,我已经完成了您的指南,已经尝试了您的“处理防火墙和代理”文章,但问题仍然存在。我使用的是 Win7 32 位,Windows 防火墙被禁用,没有任何第三方防火墙,ESET Nod32 Antivirus 没有阻止任何端口,我没有使用任何代理(也不是本地代理)。
这是日志:
普通SSH连接试试
C:\Users\Mariusz>ssh -vvv git@github.com
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug2: ssh_connect: needpriv 0
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: connect to address 207.97.227.239 port 22: Not owner
ssh: connect to host github.com port 22: Bad file number
Run Code Online (Sandbox Code Playgroud)NCAT连接尝试
C:\Users\Mariusz>ncat github.com 22
Strange connect error from 207.97.227.239 (10013): No error
10013 = WSAEACCES
Run Code Online (Sandbox Code Playgroud)
我认为“smart-http-support”方法对我不起作用,因为我还没有创建一个仓库。
我刚刚在git init本地完成,并在git push返回相同错误的步骤处停止:
ssh: connect to host github.com port …Run Code Online (Sandbox Code Playgroud)在将命令粘贴到运行 TC shell (/bin/tcsh) 的终端应用程序(最大 OS X 10.5.8)中时,我遇到了 1024 个字符限制问题。
这可以通过将以下命令粘贴到终端应用程序中来一致地重现:
回声 0 0 0 0 0 回声 1 1 1 1 1 回声 2 2 2 2 2 回声 3 3 3 3 3 回声 4 4 4 4 4 回声 5 5 5 5 5 回声 6 6 6 6 6 回声 7 7 7 7 7 回声 8 8 8 8 8 回声 9 9 9 9 9 回声 10 10 10 10 10 回声 11 11 …
在某些时候,我曾尝试在 Mac OS 10.6 上安装和使用“SCPlugin”,但发现它不是我需要的。
根据安装文档,它说要从这些位置删除 .plugin 文件:
/Library/Contextual Menu Items/SCFinderPlugin.plugin/Library/Receipts/SCPlugin.pkg/Applications/SCToolbarButton/usr/local/bin/svn (如果您安装了可选链接)但是卸载几个月后,我仍然看到我的控制台报告错误:
com.apple.launchd.peruser.501[93] (org.tigris.scplugin.launch[29882]) Exited with exit code: 1
com.apple.launchd.peruser.501[93] (org.tigris.scplugin.launch) Throttling respawn: Will start in 10 seconds
com.apple.launchd.peruser.501[93] (org.tigris.scplugin.launch[29883]) posix_spawn("/Library/Contextual Menu Items/SCFinderPlugin.plugin/Contents/Resources/SCPluginUIDaemon.app/Contents/MacOS/SCPluginUIDaemon", ...): No such file or directory
com.apple.launchd.peruser.501[93] (org.tigris.scplugin.launch[29883]) Exited with exit code: 1
Run Code Online (Sandbox Code Playgroud)
我对 scplugin 进行了系统范围的搜索,但没有任何报告。如何确保 launchd 不会尝试启动插件?
我创建了一个别名,这样当我输入la它时ls -la。
当我在 Mac 上启动终端时,我得到:
-bash: alias: la: not found
-bash: alias: =ls -la: not found
Run Code Online (Sandbox Code Playgroud)
为什么会这样?
我的 .bash_profile 看起来像:
alias la ='ls -la'
Run Code Online (Sandbox Code Playgroud)