LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-17-2006, 09:27 AM   #1
deej_1977
LQ Newbie
 
Registered: Dec 2005
Location: Belgium!
Distribution: Debian & Fedora
Posts: 10

Rep: Reputation: 0
Question SSH to debian box doesn't transmit ins, home, page up etc...


Hi all,

I wanted to get to know Debian so I installed a Debian 3.1 minimal install and added only SSH as a daemon. The funny thing is when I connect with Putty from my Windows box to the Debian box, I can't use the home, end, page up, page down, insert & delete buttons :/. This makes amongst other things zifting through text with more or editing long command lines pretty annoying. Keyboard does work fine directly on the box though.

Anyone ran into this before and knows how to solve this?

It's a Belgian keyboard btw.

Feedback much appreciated!

deej
 
Old 09-17-2006, 09:42 AM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Can't help you with putty because I don't use it. However the functions you are asking about would not be transmitted to the linux box anyway because they all work on the local buffer (which is to say; they work with the data that is stored in putty).

You should give cygwin a whirl. Install it and cygwin-X on the Windows box, then using SSH you can establish X-sessions with the linux box. By doing this, you can run an editor on the linux box and have the display for that editor visible on your Windows machine. If your connection is good, you will find the speed to be quite acceptable.
 
Old 09-17-2006, 11:26 AM   #3
deej_1977
LQ Newbie
 
Registered: Dec 2005
Location: Belgium!
Distribution: Debian & Fedora
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jiml8
Can't help you with putty because I don't use it. However the functions you are asking about would not be transmitted to the linux box anyway because they all work on the local buffer (which is to say; they work with the data that is stored in putty).
Are you sure? Because ssh'in to my Fedora box does transmit all the homes, inserts etc...
 
Old 09-18-2006, 11:38 AM   #4
deej_1977
LQ Newbie
 
Registered: Dec 2005
Location: Belgium!
Distribution: Debian & Fedora
Posts: 10

Original Poster
Rep: Reputation: 0
Unhappy

I narrowed it down, it seems it's only the bash shell that gives me trouble since when I nano files, all the key sequences are handled correctly.

I'm still seeking some help on this one. Any ideas community?
 
Old 09-18-2006, 12:40 PM   #5
deej_1977
LQ Newbie
 
Registered: Dec 2005
Location: Belgium!
Distribution: Debian & Fedora
Posts: 10

Original Poster
Rep: Reputation: 0
Well I fixed it. Had to uncomment the following lines in /etc/inputrc:

Code:
# allow the use of the Home/End keys
"\e[1~": beginning-of-line
"\e[4~": end-of-line

# allow the use of the Delete/Insert keys
"\e[3~": delete-char
"\e[2~": quoted-insert

# mappings for "page up" and "page down" to step to the beginning/end 
# of the history
"\e[5~": beginning-of-history
"\e[6~": end-of-history
 
Old 09-19-2006, 06:00 AM   #6
mastrboy
Member
 
Registered: Aug 2005
Distribution: Debian, OpenBSD, PFsense
Posts: 73

Rep: Reputation: 15
This command should do the trick:
Code:
export TERM='linux'
 
Old 09-20-2006, 04:55 AM   #7
deej_1977
LQ Newbie
 
Registered: Dec 2005
Location: Belgium!
Distribution: Debian & Fedora
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mastrboy
This command should do the trick:
Code:
export TERM='linux'
Ah I will try that. Do I just run that as root and it'll stay permanent?

EDIT: nvm I added it to .bashrc, solves it. Thank you very much Masterboy!

Last edited by deej_1977; 09-20-2006 at 06:05 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot ssh to debian box from Gentoo box or Putty, but I can from Cygwin? Pengus Linux - Networking 2 01-20-2006 12:47 PM
ssh to box at home z3nith Linux - Networking 3 09-13-2005 11:22 PM
lost start page (home page?) multiplaone Linux - Newbie 1 05-29-2005 06:10 PM
cannot ssh to home linux box from work gene_albin Linux - Networking 4 11-20-2004 07:26 AM
Plug-ins, Plug-ins, Plug-ins, those damn Plug-ins!! GRRRR!! Ausar Linux - Newbie 1 06-09-2004 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration