Hello list, Today I was doing some troubleshooting of a service on a dom-u and noticed that I couldn''t exit a telnet session because ctrl - ] just dropped me out of console. When I went back into console, I was still in the telnet session. Was using telent to see why monitors were reporting an invalid greeting on some services. Eventually the telnet session would time out, or I could just manually enter the command to disconnect, not really a huge issue. I have SSH disabled on these hosts and only access them via the console because they are quite small and ssh brute force attacks really interfere with use. I''m sure its possible to change the escape key sequence to exit the console from ctrl - ] to something else, I''m just not sure where to do it. The system is in production so I hope not to do too much trial and error with regards to editing stuff in Xen :) If these go down for more than a minute or two I''ll have a not so happy boss on my hands. Anyone else run into this? Thanks in advance, Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Harald Weidner
2006-Nov-30 08:45 UTC
Re: [Xen-users] Can Ctrl - ] to exit console be changed?
Hello,>Today I was doing some troubleshooting of a service on a dom-u and >noticed that I couldn''t exit a telnet session because ctrl - ] just >dropped me out of console. When I went back into console, I was still in >the telnet session.You can specify another escape sequence for telnet: telnet -e ^e host port sets ctrl-e as escape sequence. Regards, Harald _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Harald Koenig
2006-Nov-30 10:00 UTC
Re: [Xen-users] Can Ctrl - ] to exit console be changed?
On Nov 30, Tim Post wrote:> I''m sure its possible to change the escape key sequence to exit the > console from ctrl - ] to something else, I''m just not sure where to doI doubt it''s possible. I had the same problem and found the following comment http://lists.xensource.com/archives/html/xen-users/2005-12/msg00721.html Can you imagine the support headache this would provide? Think of all the people coming on IRC and asking and each one being told a different answer. ... I question the benifit of this. I myself question this argumentation...> it. The system is in production so I hope not to do too much trial and > error with regards to editing stuff in Xen :) If these go down for more > than a minute or two I''ll have a not so happy boss on my hands. > > Anyone else run into this?yes! not really what you''ve asked for, but you can easily change the escape char for telnet! I''m using CTRL-\ (like good old kermit kermit;) with telnet -e "^\\" remotehost or as permanent default echo ''DEFAULT set escape ^\\'' > ~/.telnetrc just make sure you disable the QUIT char in your terminal settings, which pretty often is set to CTRL-\ too (check with "stty -a", using stty quit "" Harald Koenig -- "I hope to die ___ _____ before I *have* to use Microsoft Word.", 0--,| /OOOOOOO\ Donald E. Knuth, 02-Oct-2001 in Tuebingen. <_/ / /OOOOOOOOOOO\ \ \/OOOOOOOOOOOOOOO\ \ OOOOOOOOOOOOOOOOO|// Harald Koenig \/\/\/\/\/\/\/\/\/ science+computing ag // / \\ \ koenig@science-computing.de ^^^^^ ^^^^^ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nick Craig-Wood
2006-Nov-30 10:05 UTC
Re: [Xen-users] Can Ctrl - ] to exit console be changed?
On Thu, Nov 30, 2006 at 02:27:31PM +0800, Tim Post wrote:> Today I was doing some troubleshooting of a service on a dom-u and > noticed that I couldn''t exit a telnet session because ctrl - ] just > dropped me out of console. When I went back into console, I was still in > the telnet session. Was using telent to see why monitors were reporting > an invalid greeting on some services. > > Eventually the telnet session would time out, or I could just manually > enter the command to disconnect, not really a huge issue. I have SSH > disabled on these hosts and only access them via the console because > they are quite small and ssh brute force attacks really interfere with > use. > > I''m sure its possible to change the escape key sequence to exit the > console from ctrl - ] to something else, I''m just not sure where to do > it. The system is in production so I hope not to do too much trial and > error with regards to editing stuff in Xen :) If these go down for more > than a minute or two I''ll have a not so happy boss on my hands.It is easy to change the escape key telnet uses, see the -e option. Eg set the escape character to Control-A (to annoy all screen and emacs users) telnet -e ^a 1.2.3.4 This option was included in the bad old days when telnet-ing from one place and then on to another was common. -- Nick Craig-Wood <nick@craig-wood.com> -- http://www.craig-wood.com/nick _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ulrich Windl
2006-Nov-30 10:35 UTC
Re: [Xen-users] Can Ctrl - ] to exit console be changed?
On 30 Nov 2006 at 14:27, Tim Post wrote: [...]> I''m sure its possible to change the escape key sequence to exit the > console from ctrl - ] to something else, I''m just not sure where to do > it. The system is in production so I hope not to do too much trial andRTFM: -e c Set the telnet command mode escape character to be ^c instead of its default value of ^].> error with regards to editing stuff in Xen :) If these go down for more > than a minute or two I''ll have a not so happy boss on my hands.[...] Ulrich _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Paul Reilly
2006-Nov-30 10:57 UTC
Re: [Xen-users] Can Ctrl - ] to exit console be changed?
> > I''m sure its possible to change the escape key sequence to exit the > > console from ctrl - ] to something else, I''m just not sure where to do > > it. The system is in production so I hope not to do too much trial and > > RTFM: > -e c Set the telnet command mode escape character to be ^c > instead of its default value of ^]. >Yes, but how do you do it in Xen ? That was the original question. To add to this does anyone know how to keep the console connected when the guest domain reboots? It used to stay connected in 2.0.x but not in 3.0.x. Paul _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, 2006-11-30 at 11:00 +0100, Harald Koenig wrote:> > I doubt it''s possible. I had the same problem and found the following comment > > http://lists.xensource.com/archives/html/xen-users/2005-12/msg00721.html > > Can you imagine the support headache this would provide? Think of all > the people coming on IRC and asking and each one being told a different > answer. > ... > I question the benifit of this. >The thread was a much needed laugh : Newbie: How to I escape from the console XenGuru: ^], no wait, erm ^. erm, no, hold on which country are you on? Oh sod it, roll your head on the keyboard while you hold down ctrl. We have programmers from all over the world working on stuff so it described my problem perfectly.> I myself question this argumentation...It is configurable, everything in Xen is configurable if you know where to look for it. Its just not convenient to configure.> yes! > > not really what you''ve asked for, but you can easily change the escape char > for telnet! I''m using CTRL-\ (like good old kermit kermit;) with > > telnet -e "^\\" remotehost > > or as permanent default > > echo ''DEFAULT set escape ^\\'' > ~/.telnetrc >I dont think I''ll ever use Zmodem via console so ctrl - x should do nicely. I forgot telnet read a startup file.> Harald KoenigThanks Harald, I may have an un-interrupted evening now :) I wasn''t looking forward to the night shift calling me asking how to get out of an endless loop. Best, -Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users