I get the kmail message "Could not connect to host localhost" when
ssh -v -2 -p995 -L 11110:localhost:995
username@pop.gmail.com sleep 5
kmail configured for username, localhost, port 11110
(instead of normally username, pop.gmail.com, 995, normal pop3 works fine with kmail without ssh)
Instructions are from
http://www.slac.com/~mpilone/projects/kde/kmailssh/
(ever so slightly changed so I run ssh in a terminal before using kmail.
All done as normal user. OpenSSH_4.3p1, mandriva 2005 LE, 2.6.11-13mdkcustom
kmail -v
Qt: 3.3.4 KDE: 3.3.2 KMail: 1.7.2
cat /etc/hosts | grep local
127.0.0.1 localhost
cat /etc/hosts.allow | grep 127
127.0.0.1
cat /etc/ssh/ssh_config | grep -v ^#
Host *
ForwardX11 yes
ForwardX11Trusted yes
Protocol 2,1
StrictHostKeyChecking no
Code:
ssh -v -2 -p995 -L 11110:localhost:995 username@pop.gmail.com sleep 5
debug1: Connecting to pop.gmail.com [66.249.93.111] port 995.
debug1: Connection established.
netstat says
Code:
TCP 192.168.x.y:50315->66.249.93.111:pop3s (ESTABLISHED)
192.168.x.y is my private PC behind a dlink router
The port 50315 is random, I thought I would get 11110, no?
Loopback is ok: ifconfig | grep Loop
lo Link encap:Local Loopback
Anyway, I googled around, just a few threads similar, but no solution.
Ideas are appreciated

(still a newbie at ntworking really)
Looked into ssh manual, not found a solution there.
PS: No clues in syslog, and cannot find a log for kmail. Running kmail from
command line leaves no messages in the konsole.