megoldva, köszönöm - python 3 ssh klienst ajánljatok jó szívvel - paramiko

Szervusztok!

Lehet hogy túl sok igényem van, hogy

- py2-t már csak ne új projektbe,

- kulcsot képes legyen kezelni,

- menjen egyedi port-ra is,

- adjon std.err output-ot,

- élő projekt megfelelő karbantartással legyen mögötte,

- megoldott legyen benne az scp is,

Ezt az oldalt már kidobta a kereső, de nem vagyok vele előrébb,

https://wiki.python.org/moin/SecureShell

mert a spur kiesik a std.err-al,

a paramiko kiesik, mert nem megy 22-n kívül más port-ra

a többi meg - legyen külső bináris és csövezzem be?

Kösz az ajánlást, javaslatot, stb!

Üdv,

vfero

Hozzászólások

a Debian 10.3-as sajnos nagyon nem szereti. Nem elérhető repo-ban, a pip meg pofára esik vele. :S

  *** Error compiling '/tmp/pip-install-dzmyx_4c/asyncssh/asyncssh/listen.py'...
    File "/tmp/pip-install-dzmyx_4c/asyncssh/asyncssh/listen.py", line 113
      asyncio.async(self._conn._close_client_listener(self, self._listen_host,
                  ^
  SyntaxError: invalid syntax

A 9-es esetén meg:

asyncssh requires Python '>= 3.6' but the running Python is 3.5.3

Köszönöm ettől függetlenül!

vfero

Furcsa, most próbáltam egy szűz Debian 10 rendszerre és nekem felment:

# python3 -V
Python 3.7.3

# python3 -m pip install asyncssh
Collecting asyncssh
  Downloading https://files.pythonhosted.org/packages/cf/3b/9ac19dc6c722f79b97b7878a4ffc872e36e626071e640532a8947649bbb1/asyncssh-2.1.0-py3-none-any.whl (290kB)
    100% |████████████████████████████████| 296kB 1.6MB/s
Collecting cryptography>=2.8 (from asyncssh)
  Downloading https://files.pythonhosted.org/packages/45/73/d18a8884de8bffdcda475728008b5b13be7fbef40a2acc81a0d5d524175d/cryptography-2.8-cp34-abi3-manylinux1_x86_64.whl (2.3MB)
    100% |████████████████████████████████| 2.3MB 309kB/s
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /usr/local/lib/python3.7/dist-packages (from cryptography>=2.8->asyncssh) (1.13.2)
Requirement already satisfied: six>=1.4.1 in /usr/lib/python3/dist-packages (from cryptography>=2.8->asyncssh) (1.12.0)
Requirement already satisfied: pycparser in /usr/local/lib/python3.7/dist-packages (from cffi!=1.11.3,>=1.8->cryptography>=2.8->asyncssh) (2.19)
Installing collected packages: cryptography, asyncssh
  Found existing installation: cryptography 2.6.1
    Not uninstalling cryptography at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'cryptography'. No files were found to uninstall.
Successfully installed asyncssh-2.1.0 cryptography-2.8
apt show python3.7 | grep Version

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Version: 3.7.3-2+deb10u1

python3 --version
Python 3.7.3

apt show python3.7
Package: python3.7
Version: 3.7.3-2+deb10u1
Priority: optional
Section: python
Maintainer: Matthias Klose <doko@debian.org>
Installed-Size: 418 kB
Depends: python3.7-minimal (= 3.7.3-2+deb10u1), libpython3.7-stdlib (= 3.7.3-2+deb10u1), mime-support
Suggests: python3.7-venv, python3.7-doc, binutils
Breaks: diffoscope (<< 98), fail2ban (<= 0.10.2-2), gnome-builder (<< 3.28.3-1), gpodder (<< 3.10.3-2), libboost-python1.62.0 (<< 1.62.0+dfsg-6), linux-show-player (<= 0.5-1), oca-core (<= 11.0.20180420-1), openscap-daemon (<< 0.1.10-3), patroni (<< 1.4.4-2), python3-aiomeasures (<< 0.5.14-2), python3-aiopg (<= 0.14.0-1), python3-aiozmq (<= 0.7.1-2), python3-all (<< 3.6.5~rc1-1), python3-applicationinsights (<= 0.11.0-1), python3-astroid (<= 1.6.5-1), python3-astroquery (<= 0.3.8+dfsg-2), python3-async (<= 0.6.2-2), python3-azure (<= 20170915+git-1), python3-blist (<< 1.3.6-5), python3-celery (<= 4.2.0-1), python3-cs (<< 2.3.1-1), python3-cxx-dev (<< 7.0.3-2), python3-dev (<< 3.6.5~rc1-1), python3-django (<< 1:1.11.13-2), python3-dkim (<< 0.9.0), python3-dns (<< 3.2.0-1), python3-doublex (<= 1.8.2-1), python3-dropbox (<= 8.7.1-1), python3-engineio (<= 1.6.1-1), python3-exabgp (<< 4.0.8-1), python3-gbulb (<= 0.5.3-2), python3-glance (<= 2:16.0.1-6), python3-http-parser (<= 0.8.3-2+b3), python3-hug (<= 2.3.0-1.1), python3-jira (<= 1.0.10-1), python3-libcloud (<= 2.3.0-1), python3-mastodon (<= 1.2.2-1), python3-maxminddb (<< 1.4.1-1~), python3-morse-simulator (<= 1.4-3), python3-motor (<= 1.2.3-1.1), python3-murano (<= 1:5.0.0-1), python3-nova (<= 2:17.0.3-12), python3-opcua (<= 0.95.1-1), python3-opengl (<= 3.1.0+dfsg-1), python3-panoramisk (<= 1.0-1), python3-pexpect (<< 4.6.0-1~), python3-protobuf (<= 3.0.0-9.1+b1), python3-protorpc-standalone (<= 0.9.1-3), python3-psycopg2 (<< 2.7.5-2), python3-pyatspi (<= 2.26.0+dfsg-1), python3-pycsw (<< 2.2.0+dfsg-4), python3-pycuda (<= 2017.1.1-2+b1), python3-pylama (<= 7.4.3-1), python3-pysnmp4 (<= 4.4.3-1), python3-rpyc (<= 3.4.4-1), python3-signaller (<= 1.1.0-1), python3-sleekxmpp (<= 1.3.3-3), python3-slixmpp (<< 1.3.0+git20180724-1), python3-tango (<= 9.2.3-1), python3-trollius (<< 2.1~b1-5), python3-tweepy (<= 3.5.0-1), python3-twisted (<< 18.4.0-2), python3-txfixtures (<= 0.2.6-1), python3-ubjson (<= 0.8.5-2), python3-venv (<< 3.6.5-2), python3-websockets (<= 4.0.1-1), python3-ws4py (<= 0.4.2+dfsg1-2), python3-yowsup (<= 2.5.7-3), pyzo (<< 4.4.3-1.1~), salt-common (<= 2017.7.4+dfsg1-1), snakemake (<< 5.2.1-1), visidata (<= 1.0-1), voltron (<= 0.1.4-2), xapers (<< 0.8.2-1.1)
Download-Size: 330 kB
APT-Manual-Installed: no
APT-Sources: http://deb.debian.org/debian buster/main amd64 Packages
Description: Interactive high-level object-oriented language (version 3.7)
 Python is a high-level, interactive, object-oriented language. Its 3.7 version
 includes an extensive class library with lots of goodies for
 network programming, system administration, sounds and graphics.

python3
Python 3.7.3 (default, Dec 20 2019, 18:57:59)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

Remélem segít.

vfero