Parece que o sftp -F /dev/null -o PreferredAuthentications=password user@host
está solicitando uma senha.
Estou tentando conectar pelo sftp do client-linux ao servidor. Quando estou tentando me conectar do bash com sftp -v -oPort=22 username@SERVER
, obtenho:
Received disconnect from IP_OF_THE_SERVER: 11: Application error
Couldn't read packet: Connection reset by peer
Running in verbose mode I get the following:
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: Connecting to SERVER.IP [SERVER.IP] port 22.
debug1: Connection established.
debug1: identity file /opt/PIREFTP/pireftp/.ssh/id_rsa type 1
debug1: identity file /opt/PIREFTP/pireftp/.ssh/id_rsa-cert type -1
debug1: identity file /opt/PIREFTP/pireftp/.ssh/id_dsa type 2
debug1: identity file /opt/PIREFTP/pireftp/.ssh/id_dsa-cert type -1
debug1: identity file /opt/PIREFTP/pireftp/.ssh/id_ecdsa type -1
debug1: identity file /opt/PIREFTP/pireftp/.ssh/id_ecdsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
debug1: Remote protocol version 2.0, remote software version mod_sftp/0.9.8
debug1: no match: mod_sftp/0.9.8
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
Received disconnect from 194.8.251.205: 11: Application error
Couldn't read packet: Connection reset by peer
Eu não entendo por que ele tenta se conectar por chaves, eu quero ser solicitado por uma senha. Eu até tentei rodar com o parâmetro -o PubkeyAuthentication = no e ainda falha. Se estou me conectando do meu iPhone com o cliente FTPManager, consigo me conectar.
Parece que o sftp -F /dev/null -o PreferredAuthentications=password user@host
está solicitando uma senha.
Tags sftp connection reset