A conexão SFTP está sendo fechada após a senha

0

Nós configuramos o Cygwin no Windows 2012 e os serviços relacionados à ferramenta estão funcionando bem no servidor.

Durante a instalação, criamos um usuário local cyg_server, tentamos criar a pasta home com cyg_server usando sftp cyg_server@servername , mas, neste caso, quando tentamos fazer sftp -v cyg_server@servername , ele solicita a senha que inserimos e a conexão estabelecido em casa imediatamente fechado com o resultado abaixo.

detalhes

ssh -v [email protected]
OpenSSH_4.2p1, OpenSSL 0.9.7i 14 Oct 2005
debug1: Reading configuration data /opt/LTIssh/etc/ssh_config
debug1: Connecting to fn002dataaege-n.fn.ae.ge.com [3.14.136.107] port 22.
debug1: Connection established.
debug1: identity file /export/home/chettigo/.ssh/identity type -1
debug1: identity file /export/home/chettigo/.ssh/id_rsa type 1
debug1: identity file /export/home/chettigo/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1
debug1: match: OpenSSH_5.1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'fn002dataaege-n.fn.ae.ge.com' is known and matches the RSA host key.
debug1: Found key in /export/home/chettigo/.ssh/known_hosts:2035
debug1: ssh_rsa_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,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /export/home/chettigo/.ssh/identity
debug1: Offering public key: /export/home/chettigo/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /export/home/chettigo/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
[email protected]'s password: 
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
Last login: Thu Feb 26 06:23:07 2015 from gpsgc304.corporate.ge.com
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
Connection to fn002dataaege-n.fn.ae.ge.com closed.
debug1: Transferred: stdin 0, stdout 0, stderr 52 bytes in 17.6 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 3.0
debug1: Exit status 1

Como posso depurar e resolver esse problema?

    
por vikas 26.02.2015 / 13:45

1 resposta

0

Nos scripts de inicialização do shell da sua conta, descobri que, se houver uma saída ANY enviada para o stdout, o scp / sftp falhará na maneira como você descreve.

O que você precisa fazer é verificar todos os arquivos no host remoto, incluindo:

  • conta específica .cshrc , .login , .bashrc , .env , .profile
  • arquivos de inicialização globais em /etc , como bashrc , csh.cshrc , csh.login
por 07.03.2015 / 01:38

Tags