Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Connection...unexpectedly closed. ...command exit status

Please read documentation for common reasons of getting this error and some resolution hints.
hawstom

Re: Connection...unexpectedly closed. ...command exit status

Thanks for the great suggestions. SFTP works! Wonderful!

Tom
martin

Re: Connection...unexpectedly closed. ...command exit status 1.

First I would recommend you to try SFTP. Have you tried that? You may also check the server's log file to see why the server closes connection.
hawstom

Connection...unexpectedly closed. ...command exit status 1.

I added this to an old thread, but it wasn't immediately evident I had added a question.

I discovered WinSCP 4.0.0 Beta a couple of weeks ago and I love editing remotely using SCP and Notepad++!

I have an account at Hostmonster I am using it for. And I have an account at JaguarPC I can connect to with it.

But...

I have an account at JaguarPC where I cannot connect using SCP. Can you help me connect?

-I can connect using FTP (but editing and saving doesn't seem to work in FTP mode).
-JaguarPC tech support can connect to the account using WinSCP 3.7.6 or 4.0.0 beta and SCP after renaming .bashrc and .bash_profile
-I tried both version 4.0.0 Beta and 3.8.2 and can't connect to this one account from home or the office.

Here is a typical log:
. 2007-05-15 15:42:58.328 --------------------------------------------------------------------------
. 2007-05-15 15:42:58.328 WinSCP Version 4.0.0 (Build 342) (OS 5.1.2600 Service Pack 2)
. 2007-05-15 15:42:58.328 Login time: Tuesday, May 15, 2007 3:42:58 PM
. 2007-05-15 15:42:58.328 --------------------------------------------------------------------------
. 2007-05-15 15:42:58.328 Session name: jconstru@constructionnotesmanager.com
. 2007-05-15 15:42:58.328 Host name: constructionnotesmanager.com (Port: 22)
. 2007-05-15 15:42:58.328 User name: jconstru (Password: Yes, Key file: No)
. 2007-05-15 15:42:58.328 Tunnel: No
. 2007-05-15 15:42:58.328 Transfer Protocol: SCP
. 2007-05-15 15:42:58.328 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2007-05-15 15:42:58.328 Proxy: none
. 2007-05-15 15:42:58.328 SSH protocol version: 2; Compression: No
. 2007-05-15 15:42:58.328 Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2007-05-15 15:42:58.328 Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. 2007-05-15 15:42:58.328 SSH Bugs: -,-,-,-,-,-,-,-
. 2007-05-15 15:42:58.328 SFTP Bugs: -,-,-
. 2007-05-15 15:42:58.328 Return code variable: Autodetect; Lookup user groups: Yes
. 2007-05-15 15:42:58.328 Shell: default, EOL: 0
. 2007-05-15 15:42:58.328 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2007-05-15 15:42:58.328 Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. 2007-05-15 15:42:58.328 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2007-05-15 15:42:58.328 Cache directory changes: Yes, Permanent: Yes
. 2007-05-15 15:42:58.328 DST mode: 1
. 2007-05-15 15:42:58.328 --------------------------------------------------------------------------
. 2007-05-15 15:42:58.343 Looking up host "constructionnotesmanager.com"
. 2007-05-15 15:42:58.734 Connecting to 207.210.81.210 port 22
. 2007-05-15 15:42:59.218 Server version: SSH-1.99-OpenSSH_3.9p1
. 2007-05-15 15:42:59.218 We claim version: SSH-2.0-WinSCP_release_4.0
. 2007-05-15 15:42:59.218 Using SSH protocol version 2
. 2007-05-15 15:42:59.343 Doing Diffie-Hellman group exchange
. 2007-05-15 15:42:59.609 Doing Diffie-Hellman key exchange
. 2007-05-15 15:43:00.031 Host key fingerprint is:
. 2007-05-15 15:43:00.031 ssh-rsa 1024 c9:5d:66:b1:da:35:5f:aa:d2:7f:62:14:be:c0:b0:e7
. 2007-05-15 15:43:00.031 Initialised AES-256 client->server encryption
. 2007-05-15 15:43:00.031 Initialised HMAC-SHA1 client->server MAC algorithm
. 2007-05-15 15:43:00.031 Initialised AES-256 server->client encryption
. 2007-05-15 15:43:00.031 Initialised HMAC-SHA1 server->client MAC algorithm
! 2007-05-15 15:43:00.296 Using username "jconstru".
. 2007-05-15 15:43:00.406 Session password prompt (jconstru@constructionnotesmanager.com's password: )
. 2007-05-15 15:43:00.406 Using stored password.
. 2007-05-15 15:43:00.406 Sent password
. 2007-05-15 15:43:00.531 Access granted
. 2007-05-15 15:43:00.640 Opened channel for session
. 2007-05-15 15:43:00.750 Started a shell/command
. 2007-05-15 15:43:00.750 --------------------------------------------------------------------------
. 2007-05-15 15:43:00.750 Using SCP protocol.
. 2007-05-15 15:43:00.750 Doing startup conversation with host.
. 2007-05-15 15:43:00.750 Skipping host startup message (if any).
> 2007-05-15 15:43:00.750 echo "WinSCP: this is end-of-file:0"
. 2007-05-15 15:43:01.984 Server sent command exit status 1
. 2007-05-15 15:43:01.984 All channels closed. Disconnecting
. 2007-05-15 15:43:01.984 Server closed network connection
* 2007-05-15 15:43:02.015 (ESshFatal) Connection has been unexpectedly closed. Server sent command exit status 1.
* 2007-05-15 15:43:02.015 Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).

Another:
! 2007-05-16 14:44:22.375 Using username "jconstru".
. 2007-05-16 14:44:22.484 Session password prompt (jconstru@constructionnotesmanager.com's password: )
. 2007-05-16 14:44:22.484 Using stored password.
. 2007-05-16 14:44:22.484 Sent password
. 2007-05-16 14:44:22.609 Access granted
. 2007-05-16 14:44:22.718 Opened channel for session
. 2007-05-16 14:44:22.828 Started a shell/command
. 2007-05-16 14:44:22.828 --------------------------------------------------------------------------
. 2007-05-16 14:44:22.828 Using SCP protocol.
. 2007-05-16 14:44:22.828 Doing startup conversation with host.
. 2007-05-16 14:44:22.828 Skipping host startup message (if any).
> 2007-05-16 14:44:22.828 echo "WinSCP: this is end-of-file:0"
. 2007-05-16 14:44:24.078 Server sent command exit status 1
. 2007-05-16 14:44:24.078 All channels closed. Disconnecting
. 2007-05-16 14:44:24.078 Server closed network connection
* 2007-05-16 14:44:24.078 (ESshFatal) Connection has been unexpectedly closed. Server sent command exit status 1.
* 2007-05-16 14:44:24.078 Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).

Can you help me?