Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3137

cf-remote doesn't try whoami username for ssh

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.15.0
    • Component/s: contrib: cf-remote
    • Labels:
      None

      Description

      > $ cf-remote info --hosts $(hostname)
      Unknown exception: Raw
      Traceback (most recent call last):
        File "/usr/local/lib/python3.7/dist-packages/paramiko/transport.py", line 2083, in run
          self._handler_table[ptype](self, m)
        File "/usr/local/lib/python3.7/dist-packages/paramiko/transport.py", line 2199, in _negotiate_keys
          self.kex_engine.start_kex()
        File "/usr/local/lib/python3.7/dist-packages/paramiko/kex_curve25519.py", line 54, in start_kex
          serialization.Encoding.Raw, serialization.PublicFormat.Raw
        File "/usr/lib/python3.7/enum.py", line 349, in __getattr__
          raise AttributeError(name) from None
      AttributeError: Raw
      
      Traceback (most recent call last):
        File "/home/nickanderson/bin/cf-remote", line 11, in <module>
          main()
        File "/home/nickanderson/Northern.Tech/CFEngine/core/contrib/cf-remote/cf_remote/main.py", line 137, in main
          run_command_with_args(args.command, args)
        File "/home/nickanderson/Northern.Tech/CFEngine/core/contrib/cf-remote/cf_remote/main.py", line 44, in run_command_with_args
          commands.info(args.hosts, None)
        File "/home/nickanderson/Northern.Tech/CFEngine/core/contrib/cf-remote/cf_remote/commands.py", line 15, in info
          data = get_info(host, users=users)
        File "/home/nickanderson/Northern.Tech/CFEngine/core/contrib/cf-remote/cf_remote/ssh.py", line 39, in connect_wrapper
          with connect(host, users=kwargs.get("users")) as connection:
        File "/home/nickanderson/Northern.Tech/CFEngine/core/contrib/cf-remote/cf_remote/ssh.py", line 25, in connect
          c.run("whoami", hide=True)
        File "<decorator-gen-3>", line 2, in run
        File "/usr/local/lib/python3.7/dist-packages/fabric/connection.py", line 29, in opens
          self.open()
        File "/usr/local/lib/python3.7/dist-packages/fabric/connection.py", line 615, in open
          self.client.connect(**kwargs)
        File "/usr/local/lib/python3.7/dist-packages/paramiko/client.py", line 406, in connect
          t.start_client(timeout=timeout)
        File "/usr/local/lib/python3.7/dist-packages/paramiko/transport.py", line 660, in start_client
          raise e
        File "/usr/local/lib/python3.7/dist-packages/paramiko/transport.py", line 2083, in run
          self._handler_table[ptype](self, m)
        File "/usr/local/lib/python3.7/dist-packages/paramiko/transport.py", line 2199, in _negotiate_keys
          self.kex_engine.start_kex()
        File "/usr/local/lib/python3.7/dist-packages/paramiko/kex_curve25519.py", line 54, in start_kex
          serialization.Encoding.Raw, serialization.PublicFormat.Raw
        File "/usr/lib/python3.7/enum.py", line 349, in __getattr__
          raise AttributeError(name) from None
      AttributeError: Raw
      
      

        Attachments

          Activity

            People

            • Assignee:
              olehermanse Ole Herman Schumacher Elgesem
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel