Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

scp over SSH exits with status code 1 after successful transfer #11786

Closed
Assignees
mafredri
@coadler

Description

@coadler

To reproduce:

colin at coderin /tmp/tmp.1mb8ndcSGY$ touch test.txtcolin at coderin /tmp/tmp.1mb8ndcSGY$ scp test.txt coder.coolin:test.txt                                                                                                                                                                                                                                                          100%    0     0.0KB/s   00:00colin at coderin /tmp/tmp.1mb8ndcSGY$echo$?1
Debug
$ scp -v test.txt coder.coolin:Executing: program /nix/store/0f1agkdv114rpvvr8j8vgsnn5pqrqijz-openssh-9.6p1/bin/ssh host coder.coolin, user (unspecified), command sftpOpenSSH_9.6p1, OpenSSL 3.0.12 24 Oct 2023debug1: Reading configuration data /home/colin/.ssh/configdebug1: /home/colin/.ssh/config line 29: Applying options for coder.coolindebug1: Reading configuration data /etc/ssh/ssh_configdebug1: /etc/ssh/ssh_config line 5: Applying options for *debug1: Executing proxy command: exec /home/colin/go/bin/coder --global-config /home/colin/.config/coderv2 ssh --stdio coolindebug1: identity file /home/colin/.ssh/id_rsa type 0debug1: identity file /home/colin/.ssh/id_rsa-cert type -1debug1: identity file /home/colin/.ssh/id_ecdsa type -1debug1: identity file /home/colin/.ssh/id_ecdsa-cert type -1debug1: identity file /home/colin/.ssh/id_ecdsa_sk type -1debug1: identity file /home/colin/.ssh/id_ecdsa_sk-cert type -1debug1: identity file /home/colin/.ssh/id_ed25519 type 3debug1: identity file /home/colin/.ssh/id_ed25519-cert type -1debug1: identity file /home/colin/.ssh/id_ed25519_sk type -1debug1: identity file /home/colin/.ssh/id_ed25519_sk-cert type -1debug1: identity file /home/colin/.ssh/id_xmss type -1debug1: identity file /home/colin/.ssh/id_xmss-cert type -1debug1: identity file /home/colin/.ssh/id_dsa type -1debug1: identity file /home/colin/.ssh/id_dsa-cert type -1debug1: Local version string SSH-2.0-OpenSSH_9.6debug1: Remote protocol version 2.0, remote software version Godebug1: compat_banner: no match: Godebug1: Authenticating to coder.coolin:22 as 'colin'debug1: SSH2_MSG_KEXINIT sentdebug1: SSH2_MSG_KEXINIT receiveddebug1: kex: algorithm: curve25519-sha256debug1: kex: host key algorithm: rsa-sha2-512debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: nonedebug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: nonedebug1: expecting SSH2_MSG_KEX_ECDH_REPLYdebug1: SSH2_MSG_KEX_ECDH_REPLY receiveddebug1: Server host key: ssh-rsa SHA256:rOlYkHnSNpwlG7wdQv/d8oW6sRvJq6Smh/Vo7d5ntUwWarning: Permanently added 'coder.coolin' (RSA) to the list of known hosts.debug1: ssh_packet_send2_wrapped: resetting send seqnr 3debug1: rekey out after 134217728 blocksdebug1: SSH2_MSG_NEWKEYS sentdebug1: expecting SSH2_MSG_NEWKEYSdebug1: ssh_packet_read_poll2: resetting read seqnr 3debug1: SSH2_MSG_NEWKEYS receiveddebug1: rekey in after 134217728 blocksdebug1: SSH2_MSG_EXT_INFO receiveddebug1: kex_ext_info_client_parse: 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: kex_ext_info_check_ver: ping@openssh.com=<0>debug1: SSH2_MSG_SERVICE_ACCEPT receivedAuthenticated to coder.coolin (via proxy) using "none".debug1: channel 0: new session [client-session] (inactive timeout: 0)debug1: Entering interactive session.debug1: pledge: procdebug1: Sending subsystem: sftpdebug1: pledge: forktest.txt                                                                                                                                                                                                                                                          100%    0     0.0KB/s   00:00scp: debug1: truncating at 0debug1: client_input_channel_req: channel 0 rtype exit-status reply 0debug1: channel 0: free: client-session, nchannels 1Transferred: sent 2040, received 2088 bytes, in 0.5 secondsBytes per second: sent 3930.4, received 4022.8debug1: Exit status 1

It seems like running scp with-O fixes the issue, implying the issue is with out SFTP implementation.

colin at coderin /tmp/tmp.1mb8ndcSGY$ scp -O test.txt coder.coolin:test.txt                                                                                                                                                                                                                                                          100%    0     0.0KB/s   00:00colin at coderin /tmp/tmp.1mb8ndcSGY$echo$?0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp