偶尔会遇到这样的现象 ssh 登录一台远程机器,显示下面的信息然后hang在那 Connecting to 192.168.137.102:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. 这是因为sshd 默认开启了UseDNS. 所以卡在解析dns那里. 解决办法 编辑sshd配置文件,UseDNS no 重启服务
git clone ssh 代码: 报错: Warning: Permanently added 'gitee.com,120.55.226.24' (ECDSA) to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository. 因为在GIT上没有对SSH的Key设置: Key获取方式 1:执行 cd ~/.ssh,查看是否存在文件 2:执行 $ gi
记录一下今天 git 拉代码遇到的一些异常情况: 无论是项目目录下 git pull 还是直接 git clone 都不能正常拉代码: 异常情况1 ssh: connect to host gitee.com port 23: Connection timed out fatal: Could not read from remote repository. 我把 ssh: connect to host gitee.com port 23: Connection timed out 当做关键词