Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paramiko.ssh_exception.SSHException: Incompatible ssh peer (no acceptable host key) on all tests #167

Closed
mcepl opened this issue Oct 31, 2021 · 1 comment
Labels

Comments

@mcepl
Copy link

mcepl commented Oct 31, 2021

While packaging for openSUSE I get these errors when running the test suite:

[    8s] Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.DEzjKx
[    8s] + umask 022
[    8s] + cd /home/abuild/rpmbuild/BUILD
[    8s] + cd scp.py-0.14.1
[    8s] + export SCPPY_PORT=10022
[    8s] + SCPPY_PORT=10022
[    8s] + ./.ci/setup_ssh.sh
[    8s] Generating public/private rsa key pair.
[    8s] Your identification has been saved in key_rsa
[    8s] Your public key has been saved in key_rsa.pub
[    8s] The key fingerprint is:
[    8s] SHA256:3lcDOpMODZk7uZTtJfXC/eS4WL5AzntNP/ITx80NwTU abuild@stitny
[    8s] The key's randomart image is:
[    8s] +---[RSA 3072]----+
[    8s] |             . E.|
[    8s] |         o    o .|
[    8s] |        +   o  . |
[    8s] |         B = +.  |
[    8s] |        S O = =++|
[    8s] |       o B O o BB|
[    8s] |        o + = oo*|
[    8s] |           . B.+o|
[    8s] |            o.*oo|
[    8s] +----[SHA256]-----+
[    9s] Generating public/private dsa key pair.
[    9s] Your identification has been saved in key_dsa
[    9s] Your public key has been saved in key_dsa.pub
[    9s] The key fingerprint is:
[    9s] SHA256:8/a+qYRMhI1BxWGtRWfo4nNmkoyd8q3zf9+4rPpgHNM abuild@stitny
[    9s] The key's randomart image is:
[    9s] +---[DSA 1024]----+
[    9s] |     .oo++..o    |
[    9s] |       *. +o     |
[    9s] |      o o+       |
[    9s] |       .o ..     |
[    9s] |       =S+o E    |
[    9s] |      ooO=+o     |
[    9s] |       ooBB      |
[    9s] |        o+.o o...|
[    9s] |        .++*O++oo|
[    9s] +----[SHA256]-----+
[    9s] Generating public/private rsa key pair.
[    9s] Your identification has been saved in client/id_rsa
[    9s] Your public key has been saved in client/id_rsa.pub
[    9s] The key fingerprint is:
[    9s] SHA256:dNqgw47Y/jRoiUwPtlZtk0Plpvl8AFjcpq3KKsFry/4 abuild@stitny
[    9s] The key's randomart image is:
[    9s] +---[RSA 3072]----+
[    9s] |     ....        |
[    9s] |     o.oo        |
[    9s] |    . o+= .      |
[    9s] |     +.O.=       |
[    9s] |. + . %.S .      |
[    9s] |.= O *.* .       |
[    9s] | .B.B.+ o .      |
[    9s] |o+ oo. . .       |
[    9s] |o=+E...          |
[    9s] +----[SHA256]-----+
[    9s] config line 7: Deprecated option UsePrivilegeSeparation
[    9s] config line 15: Deprecated option RSAAuthentication
[    9s] Warning: Permanently added '[127.0.0.1]:10022' (RSA) to the list of known hosts.
[    9s] [127.0.0.1]:10022 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC7fjsQ9BRuyKT0/iirXeYuFVCqMITbfscdHdp/UmcI6b6vUvKE4WHJBveiEOMZjAGuQp8NyCWc0kpc4pjrgI12QyLWiM0Es/M447mVDhctMjAQ5kiBgrIVFo3P2Rh21fu/5Izfynb/5j49oBcCjA+DinKVua3ZB5vJoCwpnP7xXrNmP+1IpVANTu/08Datf/PauSE+zj7tHSOONGacqMypxYmMNqzfYqhW6Mr3RCANopZHP8Km22MnBbr256drjAqkZUslhnOczFl+w6kMf61d1DhkMU2ic2Oe5fD4thfHo1duoY4VyhJbCY05CNtS3Gm1dLf28GRKIVU/lrjontZtHdyMdywUL827+9xhUOO8/NBPPtdCqNs4HEe30RZm8+1X+dUWO+SMA0YEgtYw/ygmA9wsK5l4mo/YQJdzJvcZXDR+6DPOA2ky+Guq3QhNxxrQMFARcz02a3/rdus6GLKD93XUhwTMmx+UvKo/kUQlOX/4ExLr5bXJxko/00s1mxk=
[    9s] ++ '[' -f _current_flavor ']'
[    9s] ++ cat _current_flavor
[    9s] + last_flavor=python38
[    9s] + '[' -z python38 ']'
[    9s] + '[' python38 '!=' python36 ']'
[    9s] + '[' -d build ']'
[    9s] + mv build _build.python38
[    9s] + '[' -d _build.python36 ']'
[    9s] + mv _build.python36 build
[    9s] + echo python36
[    9s] + python_flavor=python36
[    9s] + PYTHONPATH=/home/abuild/rpmbuild/BUILDROOT/python-scp-0.14.1-0.x86_64/usr/lib/python3.6/site-packages
[    9s] + PYTHONDONTWRITEBYTECODE=1
[    9s] + python3.6 -m unittest -v
[    9s] Exception: Incompatible ssh peer (no acceptable host key)
[    9s] Traceback (most recent call last):
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2083, in run
[    9s]     self._handler_table[ptype](self, m)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2198, in _negotiate_keys
[    9s]     self._parse_kex_init(m)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2378, in _parse_kex_init
[    9s]     "Incompatible ssh peer (no acceptable host key)"
[    9s] paramiko.ssh_exception.SSHException: Incompatible ssh peer (no acceptable host key)
[    9s]
[    9s] ERROR
[    9s] Exception: Incompatible ssh peer (no acceptable host key)
[    9s] Traceback (most recent call last):
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2083, in run
[    9s]     self._handler_table[ptype](self, m)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2198, in _negotiate_keys
[    9s]     self._parse_kex_init(m)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2378, in _parse_kex_init
[    9s]     "Incompatible ssh peer (no acceptable host key)"
[    9s] paramiko.ssh_exception.SSHException: Incompatible ssh peer (no acceptable host key)
[    9s]
[    9s] ERROR
[    9s] Exception: Incompatible ssh peer (no acceptable host key)
[    9s] Traceback (most recent call last):
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2083, in run
[    9s]     self._handler_table[ptype](self, m)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2198, in _negotiate_keys
[    9s]     self._parse_kex_init(m)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2378, in _parse_kex_init
[    9s]     "Incompatible ssh peer (no acceptable host key)"
[    9s] paramiko.ssh_exception.SSHException: Incompatible ssh peer (no acceptable host key)
[    9s]
[    9s] ERROR
[    9s]
[    9s] ======================================================================
[    9s] ERROR: setUpClass (test.TestDownload)
[    9s] ----------------------------------------------------------------------
[    9s] Traceback (most recent call last):
[    9s]   File "/home/abuild/rpmbuild/BUILD/scp.py-0.14.1/test.py", line 75, in setUpClass
[    9s]     cls.ssh.connect(**ssh_info)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/client.py", line 406, in connect
[    9s]     t.start_client(timeout=timeout)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 660, in start_client
[    9s]     raise e
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2083, in run
[    9s]     self._handler_table[ptype](self, m)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2198, in _negotiate_keys
[    9s]     self._parse_kex_init(m)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2378, in _parse_kex_init
[    9s]     "Incompatible ssh peer (no acceptable host key)"
[    9s] paramiko.ssh_exception.SSHException: Incompatible ssh peer (no acceptable host key)
[    9s]
[    9s] ======================================================================
[    9s] ERROR: setUpClass (test.TestUpAndDown)
[    9s] ----------------------------------------------------------------------
[    9s] Traceback (most recent call last):
[    9s]   File "/home/abuild/rpmbuild/BUILD/scp.py-0.14.1/test.py", line 315, in setUpClass
[    9s]     cls.ssh.connect(**ssh_info)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/client.py", line 406, in connect
[    9s]     t.start_client(timeout=timeout)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 660, in start_client
[    9s]     raise e
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2083, in run
[    9s]     self._handler_table[ptype](self, m)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2198, in _negotiate_keys
[    9s]     self._parse_kex_init(m)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2378, in _parse_kex_init
[    9s]     "Incompatible ssh peer (no acceptable host key)"
[    9s] paramiko.ssh_exception.SSHException: Incompatible ssh peer (no acceptable host key)
[    9s]
[    9s] ======================================================================
[    9s] ERROR: setUpClass (test.TestUpload)
[    9s] ----------------------------------------------------------------------
[    9s] Traceback (most recent call last):
[    9s]   File "/home/abuild/rpmbuild/BUILD/scp.py-0.14.1/test.py", line 195, in setUpClass
[    9s]     cls.ssh.connect(**ssh_info)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/client.py", line 406, in connect
[    9s]     t.start_client(timeout=timeout)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 660, in start_client
[    9s]     raise e
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2083, in run
[    9s]     self._handler_table[ptype](self, m)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2198, in _negotiate_keys
[    9s]     self._parse_kex_init(m)
[    9s]   File "/usr/lib/python3.6/site-packages/paramiko/transport.py", line 2378, in _parse_kex_init
[    9s]     "Incompatible ssh peer (no acceptable host key)"
[    9s] paramiko.ssh_exception.SSHException: Incompatible ssh peer (no acceptable host key)
[    9s]
[    9s] ----------------------------------------------------------------------
[    9s] Ran 0 tests in 0.026s
[    9s]
[    9s] FAILED (errors=3)

Complete build log with all packages used and steps taken.

@remram44
Copy link
Collaborator

remram44 commented Nov 1, 2021

Looks like a paramiko issue, perhaps you should take it up with them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants