파일을 전송하지 않고 비밀번호 없는 SFTP 연결 종료

파일을 전송하지 않고 비밀번호 없는 SFTP 연결 종료

비밀번호 없는 SFTP를 사용하여 파일을 전송하려고 합니다. 지난주까지 작동했고 동일한 키를 사용하여 다른 서버에서 파일을 전송할 수 있었습니다. 그러나 이것은 sftp -v -oIdentityFile=/home/n123456/.ssh/id_rsa_ability 명령을 입력한 후 즉시 연결을 닫습니다.[이메일 보호됨]. 공개 키를 사용하여 인증하고 있습니다. 자세한 로그를 PFB합니다.

OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 56: Applying options for *
debug1: Connecting to abc@xyz port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /home/n123456/.ssh/id_rsa_ability type 1
debug1: identity file /home/n123456/.ssh/id_rsa_ability-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
debug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-sha2-256 none
debug1: kex: client->server aes128-ctr hmac-sha2-256 none
debug1: kex: ecdh-sha2-nistp256 need=32 dh_need=32
debug1: kex: ecdh-sha2-nistp256 need=32 dh_need=32
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxx
debug1: Host 'abc@xyz' is known and matches the ECDSA host key.
debug1: Found key in /root/.ssh/known_hosts:8
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password,keyboard-interactive
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
Server not found in Kerberos database

debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/n123456/.ssh/id_rsa_ability
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
Authenticated to xyz (xxxxxxx:22).
debug1: channel 0: new [client-session]
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug1: Sending environment.
debug1: Sending subsystem: sftp
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
Transferred: sent 3440, received 3072 bytes, in 0.1 seconds
Bytes per second: sent 37158.3, received 33183.2
debug1: Exit status 1
Connection closed

답변1

서버가 SFTP 하위 시스템을 초기화하지 못했습니다.

일반적으로 이에 대해 할 수 있는 일은 많지 않습니다. 서버를 수정하려면 서버 관리자에게 문의하세요.

이것은 아마도 당신의 열쇠와 아무 관련이 없을 것입니다.

관련 정보