$ scp -v $FILE $SERVER: Executing: program /usr/bin/ssh host $SERVER, user (unspecified), command scp -v -t . OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to $SERVER [$REMOTE_IP] port 22. debug1: Connection established. debug1: key_load_public: No such file or directory debug1: identity file $USER/.ssh/id_rsa type -1 debug1: key_load_public: No such file or directory debug1: identity file $USER/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file $USER/.ssh/id_dsa type -1 debug1: key_load_public: No such file or directory debug1: identity file $USER/.ssh/id_dsa-cert type -1 debug1: identity file $USER/.ssh/id_ecdsa type 2 debug1: key_load_public: No such file or directory debug1: identity file $USER/.ssh/id_ecdsa-cert type -1 debug1: identity file $USER/.ssh/id_ed25519 type 3 debug1: key_load_public: No such file or directory debug1: identity file $USER/.ssh/id_ed25519-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.9p1 Debian-10+deb10u2 debug1: match: OpenSSH_7.9p1 Debian-10+deb10u2 pat OpenSSH* compat 0x04000000 debug1: Authenticating to $SERVER:22 as '$USER' 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: compression: none debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: compression: none debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ecdsa-sha2-nistp256 SHA256:odT+kn09aytRX6BftJoXMzL1f88OXtrkV5g2hLZvfJY debug1: Host '$SERVER' is known and matches the ECDSA host key. debug1: Found key in $USER/.ssh/known_hosts:117 debug1: rekey after 134217728 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: rekey after 134217728 blocks debug1: SSH2_MSG_EXT_INFO received debug1: kex_input_ext_info: server-sig-algs= debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Trying private key: $USER/.ssh/id_rsa debug1: Trying private key: $USER/.ssh/id_dsa debug1: Offering public key: ECDSA SHA256:vDyZ8P9Koww05lPYrrkajmXVQ9L+o4g667a/ef8NqLU $USER/.ssh/id_ecdsa debug1: Authentications that can continue: publickey debug1: Offering public key: ED25519 SHA256:FZyfE3Iw8V6N7iWDplk9tY6+0ewyvsCIzzmoY22R64M $USER/.ssh/id_ed25519 debug1: Server accepts key: pkalg ssh-ed25519 blen 51 Enter passphrase for key '$USER/.ssh/id_ed25519': debug1: Authentication succeeded (publickey). Authenticated to $SERVER ([153.127.26.111]:22). debug1: channel 0: new [client-session] debug1: Requesting no-more-sessions@openssh.com debug1: Entering interactive session. debug1: pledge: network debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0 debug1: Remote: $USER/.ssh/authorized_keys:4: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding debug1: Remote: $USER/.ssh/authorized_keys:4: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding debug1: Sending environment. debug1: Sending env LANG = ja_JP.UTF-8 debug1: Sending command: scp -v -t . Sending file modes: C0664 7549 $FILE Sink: C0664 7549 $FILE $FILE 0% 0 0.0KB/s --:-- ETA$FILE 100% 7549 204.5KB/s 00:00 debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: channel 0: free: client-session, nchannels 1 debug1: fd 0 clearing O_NONBLOCK debug1: fd 1 clearing O_NONBLOCK Transferred: sent 9896, received 2692 bytes, in 0.3 seconds Bytes per second: sent 38362.0, received 10435.6 debug1: Exit status 0