Aug 15, 2014 Re: Stopping Traceroute & Ping using escape seq. Ctrl+Shift+6 Keith Barker - CCIE RS/Security, CISSP Jul 24, 2010 8:54 PM ( in response to Nikhil ) Why does it happen that when we try to ping or traceroute and if we need to stop it by Ctrl+Shift+6, cisco devices don't seem to.
![]()
The two basic factors are Window/Translation UTF-8 in putty and locale settings in Linux, as instructed here and many other places.In addition, it may help in putty to set Connection/Data/Terminal-type string to putty, and/or in Linux to export NCURSESNOUTF8ACS=1. These two are also mentioned multiple places.But: you may still get blocks for certain characters because the default fonts like Courier and Lucida Console don't have all Unicode chars. Download and install, and set putty to use it.This last trick was necessary for me to get noping (recommended!) to show all graphic characters.
I was looking for many solutions for this when using Docker machine (both locale and on machines set up by system administrator). In my Putty everything was fine (I had UTF-8), I was using also other SSH client and had exact same problem.Running: mc -acwas solving the problem (but not completely) and I was looking for complete solution.After reading many suggestions, I finally found the one that solved my issue.In terminal when you run: localeverify what locale you have set. I had by default C locale.To verify all locale installed run locale -aI have for example: CC.UTF-8POSIXby default.The solution is exporting LANG variable with C.UTF-8 locale like so: export LANG='C.UTF-8'You can obviously add it into.bashrc to have it automatically set in your profile. Another reason somehow related to pam that may affect hosts with powerbroker/pbis/likewise authentication.grep /etc/pam.d for the 'lsass' occurance: grep -r lsass /etc/pam.dif you see in the output something like: /etc/pam.d/common-session:session sufficient pamlsass.sothen it's probably the root cause of the problem. The quick fix is to replace 'sufficient' with 'optional' next to pamlsass module so it looks like: /etc/pam.d/common-session:session optional pamlsass.so/etc/pam.d/common-session (or other file with similar entry - there might be few of them) is probably included by /etc/pam.d/sshd before pamenv is loaded so if the processing of pam modules is finished before it comes to pamenv, the /etc/default/locale is not loaded in the user environment and you have garbled characters.
![]()
On my Windows7 machine, I'm traversing to the installed path of PuTTy Application and running: plink to connect to my remote Linux host.I see some unrecognized characters in the output as: -bash-3.2$ ls -lrt←00mtotal 96drwx- 5 lg262728 lg2 Jun 10 15:32 ←00;34mmyScripts←00mdrwx- 2 lg262728 lg2 Jun 12 13:19 ←00;34mmyLangs←00mdrwxr-xr-x 4 lg262728 lg2 Jul 1 07:43 ←00;34mmyWorkSpace←00m←m-bash-3.2$What is wrong here? Is it something about encoding? @Keys - well, cat's primary purpose is to concatenate its stdin with its stdout. Ok, so it can also add existing files specified on the command line to its stdin but it's still just concatenating two streams - out. I use it above in some of the examples because the GNU version can also interpret and display control characters - the ^@ represent NUL bytes.
![]()
In any case the pipe file is its stdin - which is also ls's stdout - and your terminal is cat's stdout so it does $TTY out.–Jul 11 '14 at 5:26. Those are escape sequences to set colors:. ←00;34 tries to turn on blue color. ←00m tries to reset the colorIt is up to your terminal to interpret those sequences and do the coloring.The real putty brings it's own terminal, which is able to interpret these.If you use plink, you are using your windows terminal, which is not able to do so and simply prints them out.On the remote host type type ls, which should print something like: ls is aliased to `ls -color=auto'This -color=auto is generating those color sequences. If you disable the alias by typing ls, the coloring sequences are gone.
![]() Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |