configuration problem: ssh working but not sftp

2007-09-26 Thread Charles D. Russell

Why does ssh work but not sftp?   What is wrong with my configuration?
sftp works OK in the other direction, from sony06 to dell03.

[EMAIL PROTECTED] ~/cygarc
$ sftp sony06
Connecting to sony06...
Received message too long 1920298606

[EMAIL PROTECTED] ~/cygarc
$ ssh sony06
Last login: Wed Sep 26 20:05:06 2007 from dell03
Fanfare!!!
You are successfully logged in to this server!!!

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: configuration problem: ssh working but not sftp

2007-09-26 Thread Igor Peshansky
On Wed, 26 Sep 2007, Charles D. Russell wrote:

 Why does ssh work but not sftp?   What is wrong with my configuration?
 sftp works OK in the other direction, from sony06 to dell03.

 [EMAIL PROTECTED] ~/cygarc
 $ sftp sony06
 Connecting to sony06...
 Received message too long 1920298606

 [EMAIL PROTECTED] ~/cygarc
 $ ssh sony06
 Last login: Wed Sep 26 20:05:06 2007 from dell03
 Fanfare!!!
 You are successfully logged in to this server!!!

When you connect via ssh, you get a login shell.  When you connect via
sftp, you get a non-login shell, which communicates with the sftp command
via standard output.  Make sure your non-login shell doesn't print
anything (say, from .bashrc).

FWIW, 1920298606 in hex is 72756E6E (which also spells runn).
Coincidence? ;-)
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: configuration problem: ssh working but not sftp

2007-09-26 Thread Charles D. Russell

Igor Peshansky wrote:

On Wed, 26 Sep 2007, Charles D. Russell wrote:


Why does ssh work but not sftp?   What is wrong with my configuration?
sftp works OK in the other direction, from sony06 to dell03.

[EMAIL PROTECTED] ~/cygarc
$ sftp sony06
Connecting to sony06...
Received message too long 1920298606

[EMAIL PROTECTED] ~/cygarc
$ ssh sony06
Last login: Wed Sep 26 20:05:06 2007 from dell03
Fanfare!!!
You are successfully logged in to this server!!!


When you connect via ssh, you get a login shell.  When you connect via
sftp, you get a non-login shell, which communicates with the sftp command
via standard output.  Make sure your non-login shell doesn't print
anything (say, from .bashrc).


Yes, echo from .bashrc was the problem.


FWIW, 1920298606 in hex is 72756E6E (which also spells runn).
Coincidence? ;-)


No.

Thanks.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/