Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
strange stuff when ssh'd in
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Lockup
Guru
Guru


Joined: 25 Jul 2002
Posts: 430

PostPosted: Mon Dec 09, 2002 6:49 pm    Post subject: strange stuff when ssh'd in Reply with quote

when i ssh into my box, the man pages and a few other progs (such as nano) are sometimes all scrambled and have weird characters instead of the regular letters etc...anyone know what might cause this? its a bit annoying
Back to top
View user's profile Send private message
qnx
l33t
l33t


Joined: 25 Jun 2002
Posts: 638
Location: Göteborg, Sweden

PostPosted: Mon Dec 09, 2002 7:41 pm    Post subject: Reply with quote

I think the same thing occurs when I run some script that prints messages in color (e.g emerge -up world) and then pipe it through less, like this:
Code:
$emerge -up world | less
.
(Now, as I tried to do it and paste the example here, it works great. No strange characters....Hmm....I remember however that it caused problems before.... BTW, it's cool that the new portage-2.0.45-r3 shows installed version too, next to the new version that program will be updated to :D.)
Regards, Jacob W.
_________________
Registred Linux user #191143!
Abit NF7-S rev. 2.00 (BIOS v. 2.7)
AMD AthlonXP 2500+ (Barton)
PATA Seagate ST3120022A
SATA Seagate ST3200822AS & Silicon Image 3112 chipset
Gentoo Linux :)
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Mon Dec 09, 2002 8:08 pm    Post subject: ssh terminal problems Reply with quote

Probably a terminal problem depending on the settings or software you're using to ssh into your box.

I'm using SecureCRT set to vt100 w/ANSI color. Using a different terminal emulation such as ANSI, vt52, etc could be the problem. In any case a bit more about your software and shell with any enviroment edits would be helpful.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
Lockup
Guru
Guru


Joined: 25 Jul 2002
Posts: 430

PostPosted: Mon Dec 09, 2002 9:41 pm    Post subject: Reply with quote

k well im using putty most of the time, and the terminal(i think thats what it is:P is pts/X
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Tue Dec 10, 2002 5:37 pm    Post subject: Reply with quote

Lockup wrote:
k well im using putty most of the time, and the terminal(i think thats what it is:P is pts/X


You're going to have to be a little more explicit than that.

1. What's your client, version, OS?

2. What is your servers version, non standard setting?

3. What is the terminal setting of your client? Lines and collumns?

4. What is the shell of the login account?

5. Any edits to .bashrc .bash_profile assuming bash shell?

6. Also assuming bash shell, what is the output of the command "set"?
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
Lockup
Guru
Guru


Joined: 25 Jul 2002
Posts: 430

PostPosted: Tue Feb 11, 2003 4:27 am    Post subject: Reply with quote

client: putty version 0.53b
OS: changes every 2 hours...varies from win 95,98,2k and xp...(college labs heh)

ssh server:
gentoo, latest stuff...ssh version: 3.5_p1-r1, no strange settings(only thing i changed is AllowUsers)

terminal settings for the client:
default (i have no idea which it is, cant seem to find it in settings o_O)
24 rows 80 columns

shell: bash
modifications to bash: added bash_completion, and aliases

output of set: (i edited out the bunch of bash stuff at the end, otherwise would be many many many pages)

Code:

BASH=/bin/bash
BASH_COMPLETION=/etc/bash_completion
BASH_COMPLETION_DIR=/etc/bash_completion.d
BASH_VERSINFO=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release" [5]="i686-pc-linux-gnu")
BASH_VERSION='2.05b.0(1)-release'
CC=gcc
CLASSPATH=/opt/blackdown-jdk-1.3.1/jre/lib/rt.jar:.
COLUMNS=128
CONFIG_PROTECT='/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config'
CONFIG_PROTECT_MASK=/etc/gconf
CVS_RSH=ssh
CXX=g++
DIRSTACK=()
EDITOR=/bin/nano
EUID=1000
GROUPS=()
HISTFILE=/home/freezer/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/home/freezer
HOSTNAME=Beast
HOSTTYPE=i686
IFS=$' \t\n'
INFODIR=/usr/share/info:/usr/X11R6/info
INFOPATH=/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info
INPUTRC=/etc/inputrc
JAVAC=/opt/blackdown-jdk-1.3.1/bin/javac
JAVA_HOME=/opt/blackdown-jdk-1.3.1
JDK_HOME=/opt/blackdown-jdk-1.3.1
KDEDIR=/usr/kde/3.1
KDEDIRS=/usr/kde/3.1:/usr/kde/3:/usr
LESS=-R
LESSOPEN='|lesspipe.sh %s'
LINES=48
LOGNAME=freezer
LS_COLORS=[MODERATOR EDIT] deleted this because it was way too long and was unduly widening the page[/MODERATOR EDIT]
MACHTYPE=i686-pc-linux-gnu
MAIL=/var/mail/freezer
MAILCHECK=60
MANPATH=[MODERATOR EDIT] deleted this because it was way too long and was unduly widening the page[/MODERATOR EDIT]
MOZILLA_FIVE_HOME=/usr/lib/mozilla
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PAGER=/usr/bin/less
PATH=[MODERATOR EDIT] deleted this because it was way too long and was unduly widening the page[/MODERATOR EDIT]
PIPESTATUS=([0]="0")
PPID=19357
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
PS2='> '
PS4='+ '
PWD=/home/freezer
QMAKESPEC=linux-g++
QTDIR=/usr/qt/3
SGML_CATALOG_FILES=[MODERATOR EDIT] deleted this because it was way too long and was unduly widening the page[/MODERATOR EDIT]
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:interactive-comments:monitor
SHLVL=1
SSH_CLIENT='66.130.64.177 13795 666'
SSH_CONNECTION='66.130.64.177 13795 192.168.0.100 666'
SSH_TTY=/dev/pts/9
TERM=xterm
UID=1000
USER=freezer
XINITRC=/etc/X11/xinit/xinitrc




im very sorry about the delay(erk? hehe), completely forgot about this thread up to yesterday, when i tried running twin(ncurses based wm) thru ssh and it completely froze up the term and gave weird chars(like i get with manpages)
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Tue Feb 11, 2003 5:55 am    Post subject: Reply with quote

The terminal type settings for putty are in the connection pane of the setup window, . I just tried messing around with that and ANSI and vt52 caused problems like you describe. Try setting that to vt100, or xterm. Both of those work fine for me.
Back to top
View user's profile Send private message
Lockup
Guru
Guru


Joined: 25 Jul 2002
Posts: 430

PostPosted: Tue Feb 11, 2003 4:48 pm    Post subject: Reply with quote

ah ok turns out it was hidden when connected...anyways its set to "xterm"...maybe this is a problem with screen? the twin problem occured only 2 times out of 10 when NOT using screen, and simply failed or messed up the terminal with weird chars when using it...makes me wonder...(echoing $TERM when using screen gives "screen" which might be the culprit, i havent found a way to change it though, its not in /etc/screenrc, and exporting it to "xterm" made it erm change itself right after)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum