AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-215457

A L's questions

Martin Hope
A L
Asked: 2021-12-10 11:47:56 +0800 CST

curl --insecure 不工作

  • 0

我需要在代理后面运行以下内容:

curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash

哪个返回了与 SSL 相关的错误(因为代理将其证书放在两者之间)。我使用了“--insecure”并重新运行,这在一定程度上可以工作,但是-稍后在该安装脚本中,再次调用 curl,并返回相同的 SSL 错误。

我在 ~/.curlrc 中添加了“不安全”,以便调用脚本会忽略 SSL 错误..但是它们仍然会被抛出..如果我从一开始就放弃 --insecure 它仍然有效(验证 .curlrc 工作)..所以我认为这一定是权限问题..

Ran 'chmod 666 .curlrc' 并使用 'ls -l' 验证了所有的 rw - 结果相同。如何忽略这些 SSL 错误?

curl
  • 0 个回答
  • 504 Views
Martin Hope
A L
Asked: 2021-08-21 13:18:47 +0800 CST

ssh-keyscan 到 known_hosts 不产生任何结果

  • 0

当我执行时:

ssh-keyscan -H 172.22.56.2

我得到以下输出:

# 172.22.56.2:22 SSH-2.0-RomSShell_4.31
# 172.22.56.2:22 SSH-2.0-RomSShell_4.31
# 172.22.56.2:22 SSH-2.0-RomSShell_4.31
# 172.22.56.2:22 SSH-2.0-RomSShell_4.31
# 172.22.56.2:22 SSH-2.0-RomSShell_4.31

如果我再尝试:

ssh-keyscan -H 172.22.56.2 >> ~/.ssh/known_hosts

不熟悉 ssh-keyscan 但相信我得到的输出..不是我想要的,我还尝试了 -t 的变体,例如:

ssh-keyscan -H -t rsa 172.22.56.2 >> ~/.ssh/known_hosts

所有的结果都是一样的。该文件的权限是:

-rw-r--r-- 1 username username 886

“用户名”是运行上述命令的用户名。这给我留下了以下问题:

  1. 我的 ssh-keyscan 输出传达/意思是什么?我希望这里有 |1|weofijgojw = sshkey 字符串。
  2. 为什么无论如何都没有写入 ~/.ssh/known_hosts ?没有任何迹象表明问题已反馈给我/命令需要

提前感谢您的任何见解!

更新 1:

user@hostname:~$ ssh [email protected]
Unable to negotiate with 172.22.56.2 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

user@hostname:~$ ssh [email protected] -oKexAlgorithms=+diffie-hellman-group1-sha1
Unable to negotiate with 172.22.56.2 port 22: no matching host key type found. Their offer: ssh-dss

user@hostname:~$ ssh [email protected] -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss
Unable to negotiate with 172.22.56.2 port 22: no matching cipher found. Their offer: 3des-cbc

user@hostname:~$ ssh [email protected] -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss -oCiphers=+3des-cbc

The authenticity of host '172.22.56.2 (172.22.56.2)' can't be established.
DSA key fingerprint is SHA256:HwdMfb3k5KwrwQkFIRe6ZXilbObYhNzLbwb0zvk2n8U.
Are you sure you want to continue connecting (yes/no/[fingerprint])? ^C

user@hostname:~$ ssh-keyscan -H 172.22.56.2
# 172.22.56.2:22 SSH-2.0-RomSShell_4.31
# 172.22.56.2:22 SSH-2.0-RomSShell_4.31
# 172.22.56.2:22 SSH-2.0-RomSShell_4.31
# 172.22.56.2:22 SSH-2.0-RomSShell_4.31
# 172.22.56.2:22 SSH-2.0-RomSShell_4.31

添加“-vv”仅适用于 ssh 应用程序,而不适用于 ssh-keyscan,所以我没有从中找到任何有用的东西。

从技术上讲,最初提出的问题得到了回答,但这更多是因为我对调查缺乏完整的愿景——在这一点上,真正的问题似乎是:

  • 当 ssh 到同一主机产生 SSH 密钥提示时,为什么 ssh-keyscan 不返回任何结果?

我应该打开一个新问题还是只是更改我原来的提交?谢谢!

ssh ubuntu-20.04 known-hosts
  • 1 个回答
  • 1670 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve