anaconda3 / lib / libssl.so.1.0.0:没有可用的版本信息(ssh需要)

时间:2017-08-08 23:33:30

标签: python git ssh anaconda libcrypto

我在尝试使用git push时遇到了问题

以下是我得到的一些信息。如果我能提供更多信息,请告诉我。

var options = {
...
clientID: config.creds.clientID,
...
}
$ git push origin master

ssh: /home/user/anaconda3/lib/libcrypto.so.1.0.0: no version information available (required by ssh)
ssh: /home/user/anaconda3/lib/libcrypto.so.1.0.0: no version information available (required by ssh)
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
$ ldd /usr/bin/openssl

/usr/bin/openssl: /home/user/anaconda3/lib/libssl.so.1.0.0: no version information available (required by /usr/bin/openssl)
/usr/bin/openssl: /home/user/anaconda3/lib/libssl.so.1.0.0: no version information available (required by /usr/bin/openssl)
/usr/bin/openssl: /home/user/anaconda3/lib/libssl.so.1.0.0: no version information available (required by /usr/bin/openssl)
/usr/bin/openssl: /home/user/anaconda3/lib/libcrypto.so.1.0.0: no version information available (required by /usr/bin/openssl)
/usr/bin/openssl: /home/user/anaconda3/lib/libcrypto.so.1.0.0: no version information available (required by /usr/bin/openssl)
/usr/bin/openssl: /home/user/anaconda3/lib/libcrypto.so.1.0.0: no version information available (required by /usr/bin/openssl)
/usr/bin/openssl: /home/user/anaconda3/lib/libcrypto.so.1.0.0: no version information available (required by /usr/bin/openssl)
    linux-vdso.so.1 =>  (0x00007ffcbcff9000)
    libssl.so.1.0.0 => /home/user/anaconda3/lib/libssl.so.1.0.0 (0x00007ff3ea9ca000)
    libcrypto.so.1.0.0 => /home/user/anaconda3/lib/libcrypto.so.1.0.0 (0x00007ff3ea593000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff3ea1ae000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff3e9faa000)
    /lib64/ld-linux-x86-64.so.2 (0x0000556db91a8000)
$ssh --version

ssh: /home/user/anaconda3/lib/libcrypto.so.1.0.0: no version information available (required by ssh)ssh: /home/user/anaconda3/lib/libcrypto.so.1.0.0: no version information available (required by ssh)
unknown option -- -
usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-E log_file] [-e escape_char]
           [-F configfile] [-I pkcs11] [-i identity_file] [-L address]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
           [-w local_tun[:remote_tun]] [user@]hostname [command]

似乎我的anaconda3发行版下有两个libcrypto.so和libcrypto.so.1.0.0。我想知道它可能是原因但不知道如何解决它。谢谢你的帮助。

1 个答案:

答案 0 :(得分:0)

因为/home/user/anaconda3/lib/libcrypto.so.1.0.0不是ssh所需的正确文件。

对于您而言,您应该这样做:

  1. sudo ldconfig /lib/x86_64-linux-gnu/

    • 您需要使用/ lib / x86_64-linux-gnu /中的libcrypto.so而不是Anaconda lib。
  2. export LD_LIBRARY_PATH=/home/user/anaconda3/lib/

    • 如果要使用Anaconda lib作为备份lib路径,请在环境配置文件中添加一行。