sftp disconnects immediately
Posted: 2020/05/22 23:38:29
hello -
i have a new weird issue with sftp. when i use the command-line, it just disconnects me immediately. Filezilla gives me
NOTE: PuTTY continues to work fine, using the same port number.
i know this is not some strange firewall issue because PuTTY continues to work, and i get the same results when i try sftp from the SAME server.
here are the server messages:
and here is the verbose command-line:
and this worked fine.
i have a new weird issue with sftp. when i use the command-line, it just disconnects me immediately. Filezilla gives me
this has worked fine for years, no changes made that i can think of, except for a yum reboot.FATAL ERROR: Received unexpected end-of-file from SFTP server
NOTE: PuTTY continues to work fine, using the same port number.
i know this is not some strange firewall issue because PuTTY continues to work, and i get the same results when i try sftp from the SAME server.
here are the server messages:
Code: Select all
tail -f /var/log/secure
May 22 19:28:02 myserver sshd[17606]: Accepted password for mark from 71.223.65.103 port 57787 ssh2
May 22 19:28:02 myserver sshd[17606]: pam_unix(sshd:session): session opened for user mark by (uid=0)
May 22 19:28:03 myserver sshd[17668]: Received disconnect from 71.223.65.103 port 57787:11: disconnected by user
May 22 19:28:03 myserver sshd[17668]: Disconnected from 71.223.65.103 port 57787
May 22 19:28:03 myserver sshd[17606]: pam_unix(sshd:session): session closed for user mark
and here is the verbose command-line:
Code: Select all
sftp -v -P 12345 mark@16X.XXX.XXX.X6
EDIT: i triedOpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
debug1: Connecting to 162.XXX.XXX.36 [162.XXX.XXX.36] port 12345.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mark/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mark/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mark/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mark/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mark/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mark/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mark/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mark/.ssh/id_ed25519-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mark/.ssh/id_xmss type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mark/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
debug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 162.XXX.XXX.36:12345 as 'mark'
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:YyGzVsJecyoEyudnSa14fVXv+m/xR4/1zy4FxHuH7dQ
debug1: Host '[162.XXX.XXX.36]:12345' is known and matches the ECDSA host key.
debug1: Found key in C:\\Users\\mark/.ssh/known_hosts:1
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: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Trying private key: C:\\Users\\mark/.ssh/id_rsa
debug1: Trying private key: C:\\Users\\mark/.ssh/id_dsa
debug1: Trying private key: C:\\Users\\mark/.ssh/id_ecdsa
debug1: Trying private key: C:\\Users\\mark/.ssh/id_ed25519
debug1: Trying private key: C:\\Users\\mark/.ssh/id_xmss
debug1: Next authentication method: password
debug1: read_passphrase: can't open /dev/tty: No such file or directory
mark@162.XXX.XXX.36's password:
debug1: Authentication succeeded (password).
Authenticated to 162.XXX.XXX.36 ([162.XXX.XXX.36]:12345).
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: Sending subsystem: sftp
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 1796, received 2400 bytes, in 0.4 seconds
Bytes per second: sent 5131.4, received 6857.1
debug1: Exit status 1
Code: Select all
ssh -v mark@162.XXX.XXX.36 -p 12345