Skip to content
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

It doesn't propagate special keystrokes #65

Closed
padilo opened this issue Feb 27, 2017 · 4 comments
Closed

It doesn't propagate special keystrokes #65

padilo opened this issue Feb 27, 2017 · 4 comments

Comments

@padilo
Copy link
Contributor

padilo commented Feb 27, 2017

When you send a Ctrl+D, it doesn't logout correctly on a ssh session, It justs hangs. It seems to be waiting for something

@kothar
Copy link

kothar commented Feb 27, 2017

Same seems to be true for arrow keys, so I assume that control codes are not being sent correctly. (MacOS Sierra 10.12.3).

When you press Ctrl+C it just kills awless rather than passing the control code to the remote server.

awless is currently running its own pure-go ssh client, which presumably doesn't handle terminal emulation very well. Perhaps if an ssh or equivalent command is available on the system awless could invoke it using syscall.Exec on POSIX (This is an error on Windows by the look of it):

https://gobyexample.com/execing-processes

@edubxb
Copy link

edubxb commented Mar 1, 2017

Same problem here (OS Debian Testing)

@fxaguessy
Copy link
Contributor

fxaguessy commented Mar 1, 2017

This is "normal". For now, we do not propagate special keystrokes such as Ctrl+D or Ctrl+C, etc. But this is something that we want to add in the future.

@padilo padilo changed the title send EOF to ssh doesn't work It doesn't propagate special keystrokes Mar 1, 2017
@fxaguessy
Copy link
Contributor

Fixed by f00c43e: If a ssh client is present on the machine, awless uses this client to connect to the instance (which will support special keystroke).
This is available in 0.0.17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants