Hallo, ich kann keine Dateien über scp vom Host zum Server übertragen, andersherum geht auch nicht.
Über samba geht es ohne Probleme.
Ich kann mich auch problemlos auf dem server über ssh aufschalten, und beide ports 22 sind offen.
Der server ist auch ubuntu 22.04.
Server:
pattes@pattes-tty:~$ nmap -v -p 22 192.168.1.60 Starting Nmap 7.80 ( https://nmap.org ) at 2022-06-12 11:45 CEST Initiating Ping Scan at 11:45 Scanning 192.168.1.60 [2 ports] Completed Ping Scan at 11:45, 0.00s elapsed (1 total hosts) Initiating Parallel DNS resolution of 1 host. at 11:45 Completed Parallel DNS resolution of 1 host. at 11:45, 0.03s elapsed Initiating Connect Scan at 11:45 Scanning 192.168.1.60 [1 port] Discovered open port 22/tcp on 192.168.1.60 Completed Connect Scan at 11:45, 0.00s elapsed (1 total ports) Nmap scan report for 192.168.1.60 Host is up (0.00029s latency). PORT STATE SERVICE 22/tcp open ssh Read data files from: /usr/bin/../share/nmap Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds pattes@pattes-tty:~$
Host:
pattes@pattes-tty:~$ nmap -v -p 22 192.168.1.6 Starting Nmap 7.80 ( https://nmap.org ) at 2022-06-12 11:46 CEST Initiating Ping Scan at 11:46 Scanning 192.168.1.6 [2 ports] Completed Ping Scan at 11:46, 0.00s elapsed (1 total hosts) Initiating Parallel DNS resolution of 1 host. at 11:46 Completed Parallel DNS resolution of 1 host. at 11:46, 0.02s elapsed Initiating Connect Scan at 11:46 Scanning pattes-tty (192.168.1.6) [1 port] Discovered open port 22/tcp on 192.168.1.6 Completed Connect Scan at 11:46, 0.00s elapsed (1 total ports) Nmap scan report for pattes-tty (192.168.1.6) Host is up (0.000059s latency). PORT STATE SERVICE 22/tcp open ssh Read data files from: /usr/bin/../share/nmap Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds pattes@pattes-tty:~$
pattes@pattes-tty:~$ scp /home/pattes/Downloads/praemien.pdf heidi@192.168.1.60:/home/heidi/ heidi@192.168.1.60's password: _______________ pattes@pattes-tty:~$
Die Datei kommt am server aber nicht an, was könnte das sein?
pattes@pattes-tty:~$ scp -v /home/pattes/Downloads/praemien.pdf heidi@192.168.1.60:/home/heidi/ Executing: program /usr/bin/ssh host 192.168.1.60, user heidi, command scp -v -t /home/heidi/ OpenSSH_8.9p1 Ubuntu-3, OpenSSL 3.0.2 15 Mar 2022 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files debug1: /etc/ssh/ssh_config line 21: Applying options for * debug1: Connecting to 192.168.1.60 [192.168.1.60] port 22. debug1: Connection established. debug1: identity file /home/pattes/.ssh/id_rsa type -1 debug1: identity file /home/pattes/.ssh/id_rsa-cert type -1 debug1: identity file /home/pattes/.ssh/id_ecdsa type -1 debug1: identity file /home/pattes/.ssh/id_ecdsa-cert type -1 debug1: identity file /home/pattes/.ssh/id_ecdsa_sk type -1 debug1: identity file /home/pattes/.ssh/id_ecdsa_sk-cert type -1 debug1: identity file /home/pattes/.ssh/id_ed25519 type -1 debug1: identity file /home/pattes/.ssh/id_ed25519-cert type -1 debug1: identity file /home/pattes/.ssh/id_ed25519_sk type -1 debug1: identity file /home/pattes/.ssh/id_ed25519_sk-cert type -1 debug1: identity file /home/pattes/.ssh/id_xmss type -1 debug1: identity file /home/pattes/.ssh/id_xmss-cert type -1 debug1: identity file /home/pattes/.ssh/id_dsa type -1 debug1: identity file /home/pattes/.ssh/id_dsa-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_8.9p1 Ubuntu-3 debug1: Remote protocol version 2.0, remote software version OpenSSH_8.9p1 Ubuntu-3 debug1: compat_banner: match: OpenSSH_8.9p1 Ubuntu-3 pat OpenSSH* compat 0x04000000 debug1: Authenticating to 192.168.1.60:22 as 'heidi' debug1: load_hostkeys: fopen /home/pattes/.ssh/known_hosts2: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: curve25519-sha256 debug1: kex: host key algorithm: ssh-ed25519 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: SSH2_MSG_KEX_ECDH_REPLY received debug1: Server host key: ssh-ed25519 SHA256:PbD8DUoDBMYrTbNG7+NUWAHwZi+5tkH5Iskna8C2pXw debug1: load_hostkeys: fopen /home/pattes/.ssh/known_hosts2: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory debug1: Host '192.168.1.60' is known and matches the ED25519 host key. debug1: Found key in /home/pattes/.ssh/known_hosts:1 debug1: rekey out after 134217728 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: rekey in after 134217728 blocks debug1: Will attempt key: /home/pattes/.ssh/id_rsa debug1: Will attempt key: /home/pattes/.ssh/id_ecdsa debug1: Will attempt key: /home/pattes/.ssh/id_ecdsa_sk debug1: Will attempt key: /home/pattes/.ssh/id_ed25519 debug1: Will attempt key: /home/pattes/.ssh/id_ed25519_sk debug1: Will attempt key: /home/pattes/.ssh/id_xmss debug1: Will attempt key: /home/pattes/.ssh/id_dsa debug1: SSH2_MSG_EXT_INFO received debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com> debug1: kex_input_ext_info: publickey-hostbound@openssh.com=<0> debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password debug1: Next authentication method: publickey debug1: Trying private key: /home/pattes/.ssh/id_rsa debug1: Trying private key: /home/pattes/.ssh/id_ecdsa debug1: Trying private key: /home/pattes/.ssh/id_ecdsa_sk debug1: Trying private key: /home/pattes/.ssh/id_ed25519 debug1: Trying private key: /home/pattes/.ssh/id_ed25519_sk debug1: Trying private key: /home/pattes/.ssh/id_xmss debug1: Trying private key: /home/pattes/.ssh/id_dsa debug1: Next authentication method: password heidi@192.168.1.60's password: Authenticated to 192.168.1.60 ([192.168.1.60]:22) using "password". debug1: channel 0: new [client-session] debug1: Requesting no-more-sessions@openssh.com debug1: Entering interactive session. debug1: pledge: filesystem debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0 debug1: client_input_hostkeys: searching /home/pattes/.ssh/known_hosts for 192.168.1.60 / (none) debug1: client_input_hostkeys: searching /home/pattes/.ssh/known_hosts2 for 192.168.1.60 / (none) debug1: client_input_hostkeys: hostkeys file /home/pattes/.ssh/known_hosts2 does not exist debug1: client_input_hostkeys: no new or deprecated keys from server debug1: Sending environment. debug1: channel 0: setting env LC_ADDRESS = "de_DE.UTF-8" debug1: channel 0: setting env LC_NAME = "de_DE.UTF-8" debug1: channel 0: setting env LC_MONETARY = "de_DE.UTF-8" debug1: channel 0: setting env LC_PAPER = "de_DE.UTF-8" debug1: channel 0: setting env LANG = "en_US.UTF-8" debug1: channel 0: setting env LC_IDENTIFICATION = "de_DE.UTF-8" debug1: channel 0: setting env LC_TELEPHONE = "de_DE.UTF-8" debug1: channel 0: setting env LC_MEASUREMENT = "de_DE.UTF-8" debug1: channel 0: setting env LC_TIME = "de_DE.UTF-8" debug1: channel 0: setting env LC_NUMERIC = "de_DE.UTF-8" debug1: Sending command: scp -v -t /home/heidi/ _______________ pattes@pattes-tty:~$ debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: channel 0: free: client-session, nchannels 1 Transferred: sent 2512, received 2920 bytes, in 0.7 seconds Bytes per second: sent 3524.1, received 4096.4 debug1: Exit status 0 pattes@pattes-tty:~$