-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can's use ssh-chat properly #100
Comments
I can reproduce the error. It works perfect with my own Linux system. So there might be indeed an error in jor1k. However I don't know what's the reason. |
I've set up an ssh-chat server and run with Have you tried this: ssh into the jor1k instance then use By the way, can we bind |
Thanks for the detailed error description. I tried to run the ssh connection within tmux and it works. That means, that something is wrong with the terminal. I guess I have to ask some terminal experts. ngrok sounds like fun. Let's see. :) |
http://unix.stackexchange.com/questions/102061/ctrl-c-handling-in-ssh-session It looks like ssh treats this session as non-interactive instead of interactive. |
I can force the problem with the "ssh -t" option. Looks like, he cannot open a pseudoterminal. I get the error "PTY allocation request failed on channel 0" |
Looks like the pty terminal size negotiation failed because the number of columns were not set. According to the busybox "stty -a" they were already set to 80. Looks like an error in busybox. This one fixes the problem: 8aff35f |
Thanks! It fixed sending message issue. But it should be color enabled in the chat, which it isn't. Could you tell me what are the possible factors that cause this? I set |
Yes, that's normal. The terminal is a basic one: TERM=linux which is supposed to be the one included in the Linux kernel for framebuffer terminals. You can try if you get color in this type of terminal. The term variable is usually provided by ssh. the correct way for ssh-chat is to read the variable and to put it into ncurses to get the correct escape sequences for the specific terminals. Obviously this is not done here. |
😄 Cool! I just looked into the code of ssh-chat, I think you are right. Thanks! |
Yup, ssh-chat has multiple theme settings. Auto-detecting based on the TERM value is still something that needs to be done. :) |
btw. ngrok is based on the go language. |
@s-macke sadly yes. But because of that I tried to find an alternative, and I found a C port of ngrok a few days back. The reason of its existence is very considerate. The usage of it is not as elegant as original ngrok's though. And before the day I post this issue here, I found ngrok-c contains cpp code that requires g++ to compile, so... can't have that either at the moment... You did mention about punching a hole into the relay's firewall, I think it's a very good and much simpler workaround 😃 Nothing so different from using ngrok if we focus on tunneling feature, a public server is needed in both ways anyway. |
I can cross compile C++ code. This is no problem. |
There's a tiny issue with the terminal window. After ssh-keygen, I tried to play with ssh-chat with
ssh chat.shazow.net
, I can join and see others talking but it seems I can not send any messages.The text was updated successfully, but these errors were encountered: