ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ssh server

 
Post new topic       TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Threaded
View previous topic :: View next topic  
Author Message
H.G.Muller



Joined: 10 Mar 2006
Posts: 12753
Location: Amsterdam

PostPosted: Tue Aug 23, 2011 6:07 pm    Post subject: ssh server Reply to topic Reply with quote

I installed freeSSHd as an ssh server on a windows machine, with the aim to run a remote engine there. Indeed I can run the engine from the command line, from another Windows machine using plink, but the problem is that apart from the normal engine output I get the commands I send it echoed back to me. A GUI (in particular Polyglot) does not like that at all, so I cannot play the engine automatically.

I also tried to connect from a Linux machine using genuine ssh. Then I also get the commands echoed to me, (I get to see every command twice, from the command line), but the engine doesn't react to them at all. I do see the welcome message of the engine, though, so I know that I am connected and that the engine is running. This is presumably a CR/LF problem. But it suggests the echo originates from the server, and not from the client.

Is it normal that an ssh server would echo everything you send it? Or is freeSSHd just a crappy implementation?
Back to top
View user's profile Send private message Visit poster's website
Daniel Shawul



Joined: 14 Mar 2006
Posts: 2186
Location: Ethiopia

PostPosted: Tue Aug 23, 2011 6:25 pm    Post subject: Re: ssh server Reply to topic Reply with quote

If it is anything like telnet, you have to negotiate to turn off echoing (WON'T ECHO or something like that). I think it is on by default http://support.microsoft.com/kb/231866
But I don't know much about protocols..
_________________
https://sites.google.com/site/dshawul/
https://github.com/dshawul
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Matthew Hull



Joined: 08 Mar 2006
Posts: 6953
Location: Dallas, Texas

PostPosted: Tue Aug 23, 2011 6:29 pm    Post subject: Re: ssh server Reply to topic Reply with quote

hgm wrote:
I installed freeSSHd as an ssh server on a windows machine, with the aim to run a remote engine there. Indeed I can run the engine from the command line, from another Windows machine using plink, but the problem is that apart from the normal engine output I get the commands I send it echoed back to me. A GUI (in particular Polyglot) does not like that at all, so I cannot play the engine automatically.

I also tried to connect from a Linux machine using genuine ssh. Then I also get the commands echoed to me, (I get to see every command twice, from the command line), but the engine doesn't react to them at all. I do see the welcome message of the engine, though, so I know that I am connected and that the engine is running. This is presumably a CR/LF problem. But it suggests the echo originates from the server, and not from the client.

Is it normal that an ssh server would echo everything you send it? Or is freeSSHd just a crappy implementation?


If you are using PuTTY on the client side, it's supposed to try and figure out whether local echo is appropriate or not. If it's not doing it right, you can force it to echo or not upon invocation (I think).

http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter4.html#config-localecho
_________________
Matthew Hull
Back to top
View user's profile Send private message Send e-mail
Steven Edwards



Joined: 13 Mar 2006
Posts: 3071
Location: Mud, Bugs, and Taxes, NH, USA

PostPosted: Tue Aug 23, 2011 10:15 pm    Post subject: Re: ssh server Reply to topic Reply with quote

The Linux openssh implementation appears in all respects to be functionally equivalent to the same system in OpenBSD. I have run all possible client/server combinations and they all work and they work in the same way.

By default, there is no local echo. I don't know why one would want this anyway.
Back to top
View user's profile Send private message Visit poster's website
Robert Hyatt



Joined: 27 Feb 2006
Posts: 15814
Location: Birmingham, AL

PostPosted: Tue Aug 23, 2011 11:23 pm    Post subject: Re: ssh server Reply to topic Reply with quote

hgm wrote:
I installed freeSSHd as an ssh server on a windows machine, with the aim to run a remote engine there. Indeed I can run the engine from the command line, from another Windows machine using plink, but the problem is that apart from the normal engine output I get the commands I send it echoed back to me. A GUI (in particular Polyglot) does not like that at all, so I cannot play the engine automatically.

I also tried to connect from a Linux machine using genuine ssh. Then I also get the commands echoed to me, (I get to see every command twice, from the command line), but the engine doesn't react to them at all. I do see the welcome message of the engine, though, so I know that I am connected and that the engine is running. This is presumably a CR/LF problem. But it suggests the echo originates from the server, and not from the client.

Is it normal that an ssh server would echo everything you send it? Or is freeSSHd just a crappy implementation?


I use ssh all the time and do not see this ever. I see characters echoed as I type them, of course. I almost suspect this is an artifact of windows, but I am not a windows expert.
Back to top
View user's profile Send private message
Don Dailey



Joined: 29 Apr 2008
Posts: 4311

PostPosted: Tue Aug 23, 2011 11:49 pm    Post subject: Re: ssh server Reply to topic Reply with quote

hgm wrote:
I installed freeSSHd as an ssh server on a windows machine, with the aim to run a remote engine there. Indeed I can run the engine from the command line, from another Windows machine using plink, but the problem is that apart from the normal engine output I get the commands I send it echoed back to me. A GUI (in particular Polyglot) does not like that at all, so I cannot play the engine automatically.

I also tried to connect from a Linux machine using genuine ssh. Then I also get the commands echoed to me, (I get to see every command twice, from the command line), but the engine doesn't react to them at all. I do see the welcome message of the engine, though, so I know that I am connected and that the engine is running. This is presumably a CR/LF problem. But it suggests the echo originates from the server, and not from the client.

Is it normal that an ssh server would echo everything you send it? Or is freeSSHd just a crappy implementation?

At Leiden and many other times we use xboard locally and run the chess program remotely by just setting up the program like this:

-fcp "ssh some_linux_machine.com komodo"

and it works flawlessly (as long as you set the keys up properly of course.) There should be no echo, no problem.

It almost sounds like the remote shell thinks it's a terminal or something - maybe there is a configuration option to turn that off?

Can you connect TO a program on a linux machine and make this work?
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic       TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions All times are GMT
Threaded
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads