bashsshautokey

how to debug autokey when type password in bash


I've install autokey in my system.
I've set the phrase that when I type ctrl alt 0, it will automatically type mypassword and <enter> so that I can login to my server quickly.
It works fine when I trigger it in a text editor or anywhere in my UI.
But sometimes I use this shortcut to type mypassword when ssh to my server, it may failed to login.
Then I press ^C to return to the command line and try the shortcut again, it works fine.
Why this happened, how to debug, or in other words, how to check that what autokey has done when I trigger it while ssh to my server?


Solution

  • The problem should be shortcut conflicts.
    After I've disable autokey and press ctrl alt 0, the bash show's (arg: 0).
    I've search the Internet, this means that the readline mode was triggered.
    The autokey can't work well due to this shortcut conflict.