SFTP via Terminal Error

0

I cant connect to a server via sftp any more, I could yesterday. Here is the full sftp -vvv log, maybe you could help me out? Tried deleting ~/.ssh, tried hosts.allow / hosts.deny. No solution at all.

Any suggestions?

sftp -vvvvvv -P 1313 user@xx.dyndns.org
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to xx.dyndns.org [xx.xx.xx.xx] port 1313.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/user/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/user/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/user/.ssh/id_rsa-cert type -1
debug1: identity file /home/user/.ssh/id_dsa type -1
debug1: identity file /home/user/.ssh/id_dsa-cert type -1
debug1: identity file /home/user/.ssh/id_ecdsa type -1
debug1: identity file /home/user/.ssh/id_ecdsa-cert type -1
ssh_exchange_identification: Connection closed by remote host
Couldn't read packet: Connection reset by peer

breytex

Posted 2013-03-26T14:01:10.713

Reputation: 1

1Try from another computer. If it has the same problem, your computer is not the cause. – SPRBRN – 2013-03-26T14:50:37.350

Answers

1

I disagree with Aaron - this is normal behavior. See this - I also just tested a successful SFTP connection with -vvvvv, and got the same message.

I think you should check /var/log/auth.log (if Debian/Ubuntu/etc.) or /var/log secure (if RH, Fedora, etc.) on the remote computer. You should see a more informative error.

Also check the file permissions on the files on the remote server - ~/.ssh, ~/.ssh/authorized_keys They should be readable by your user, and authorized_keys should have 600 as its permissions. Can you still SSH to that server?

Jon G - Megaphone Tech

Posted 2013-03-26T14:01:10.713

Reputation: 544