tailscale-dev/vscode-tailscale

Scp shows a failure error when copying from local to remote

Closed this issue · 1 comments

When drag/dropping a file from local to remote, the file seems to get copied but we see the following errors:

Screenshot 2023-07-19 at 12 16 13 PM
Error copying file:///Users/marwansulaiman/marwan/printserver/README.md to ts://nodes/marwan/~/Downloads: Error: Command failed: scp /Users/marwansulaiman/marwan/printserver/README.md marwan:~/Downloads
EOF

Taking the command on its own and running scp from my terminal, the same behavior occurs in that scp exits with 1 and says EOF.

scp -v /Users/marwansulaiman/marwan/printserver/README.md marwan:~/Downloads
Executing: program /usr/bin/ssh host marwan, user (unspecified), command sftp
OpenSSH_9.0p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/marwansulaiman/.ssh/config
debug1: /Users/marwansulaiman/.ssh/config line 6: Applying options for marwan
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to marwan port 22.
debug1: Connection established.
debug1: identity file /Users/marwansulaiman/.ssh/id_rsa type -1
debug1: identity file /Users/marwansulaiman/.ssh/id_rsa-cert type -1
debug1: identity file /Users/marwansulaiman/.ssh/id_ecdsa type -1
debug1: identity file /Users/marwansulaiman/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/marwansulaiman/.ssh/id_ecdsa_sk type -1
debug1: identity file /Users/marwansulaiman/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /Users/marwansulaiman/.ssh/id_ed25519 type 3
debug1: identity file /Users/marwansulaiman/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/marwansulaiman/.ssh/id_ed25519_sk type -1
debug1: identity file /Users/marwansulaiman/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /Users/marwansulaiman/.ssh/id_xmss type -1
debug1: identity file /Users/marwansulaiman/.ssh/id_xmss-cert type -1
debug1: identity file /Users/marwansulaiman/.ssh/id_dsa type -1
debug1: identity file /Users/marwansulaiman/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.0
debug1: Remote protocol version 2.0, remote software version Tailscale
debug1: compat_banner: no match: Tailscale
debug1: Authenticating to marwan:22 as 'marwan'
debug1: load_hostkeys: fopen /Users/marwansulaiman/.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:jgdeqLM15+cTtH9hd7m7GkvtNGzU/3+ZEnD6g0VG5GQ
debug1: load_hostkeys: fopen /Users/marwansulaiman/.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 'marwan' is known and matches the ED25519 host key.
debug1: Found key in /Users/marwansulaiman/.ssh/known_hosts:13
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: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities
debug1: Will attempt key: /Users/marwansulaiman/.ssh/id_rsa
debug1: Will attempt key: /Users/marwansulaiman/.ssh/id_ecdsa
debug1: Will attempt key: /Users/marwansulaiman/.ssh/id_ecdsa_sk
debug1: Will attempt key: /Users/marwansulaiman/.ssh/id_ed25519 ED25519 SHA256:3qAEobsc1gP6B0GE8jxDFdGm9fvwjN+B2nGV95Tn3LU
debug1: Will attempt key: /Users/marwansulaiman/.ssh/id_ed25519_sk
debug1: Will attempt key: /Users/marwansulaiman/.ssh/id_xmss
debug1: Will attempt key: /Users/marwansulaiman/.ssh/id_dsa
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-256,rsa-sha2-512,ssh-rsa,ssh-dss>
debug1: SSH2_MSG_SERVICE_ACCEPT received
Authenticated to marwan ([100.73.104.66]:22) using "none".
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: filesystem
debug1: Sending environment.
debug1: channel 0: setting env LC_TERMINAL_VERSION = "3.4.19"
debug1: channel 0: setting env LANG = "en_US.UTF-8"
debug1: channel 0: setting env LC_TERMINAL = "iTerm2"
debug1: Sending subsystem: sftp
README.md                                                                               100%  110     2.5KB/s   00:00
EOF
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 2164, received 1628 bytes, in 0.3 seconds
Bytes per second: sent 6759.9, received 5085.5
debug1: Exit status 1

Fixed.