Ich glabue ich muss mich hier zunächst einmal korrigieren mit dem Befehl.
Es sollte so lauten:
Code:
sftp -r -P <PORT> <USER>@<SERVER>:<DIRECTORY_PATH_ON_SERVER>/* <DESTINATION_PATH_ON_HOST>
Kannst du bitte einmal deinen Befehl zeigen?
Ich habe jetzt erstmal deinen neuen Code genommen....
Das Ergebnis:
Aufgabe: Test sftp
Start: Thu, 22 Dec 2022 22:27:24 GMT
Ende: Thu, 22 Dec 2022 22:27:24 GMT
Aktueller Status: 255 (Unterbrochen)
Standardausgabe/Fehler:
Host key verification failed.
Connection closed
EDIT
Habe jetzt noch -v angegeben...
Die Meldung:
Aufgabe: Test sftp
Start: Thu, 22 Dec 2022 22:33:32 GMT
Ende: Thu, 22 Dec 2022 22:33:32 GMT
Aktueller Status: 255 (Unterbrochen)
Standardausgabe/Fehler:
OpenSSH_8.2p1, OpenSSL 1.1.1l 24 Aug 2021
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to access-5000012535.ud-webspace.de
[217.160.123.197] port 22.
debug1: Connection established.
debug1: identity file /var/services/homes/cixz/.ssh/id_rsa type -1
debug1: identity file /var/services/homes/cixz/.ssh/id_rsa-cert type -1
debug1: identity file /var/services/homes/cixz/.ssh/id_dsa type -1
debug1: identity file /var/services/homes/cixz/.ssh/id_dsa-cert type -1
debug1: identity file /var/services/homes/cixz/.ssh/id_ecdsa type -1
debug1: identity file /var/services/homes/cixz/.ssh/id_ecdsa-cert type -1
debug1: identity file /var/services/homes/cixz/.ssh/id_ecdsa_sk type -1
debug1: identity file /var/services/homes/cixz/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /var/services/homes/cixz/.ssh/id_ed25519 type -1
debug1: identity file /var/services/homes/cixz/.ssh/id_ed25519-cert type -1
debug1: identity file /var/services/homes/cixz/.ssh/id_ed25519_sk type -1
debug1: identity file /var/services/homes/cixz/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /var/services/homes/cixz/.ssh/id_xmss type -1
debug1: identity file /var/services/homes/cixz/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.2
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.9p1
debug1: match: OpenSSH_7.9p1 pat OpenSSH* compat 0x04000000
debug1: Authenticating to access-5000012535.ud-webspace.de:22 as 'a4121'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher:
chacha20-poly1305@openssh.com MAC:
<implicit> compression: none
debug1: kex: client->server cipher:
chacha20-poly1305@openssh.com MAC:
<implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256
SHA256:J4oM+B2g7zZWAdffadfasdfR1e4vdIMrGO301kEN14/slsQ
debug1: read_passphrase: can't open /dev/tty: No such device or address
Host key verification failed.
Connection closed
Den Code selbst kann ich ja schlecht posten ;o)