You are not logged in.

1

Monday, February 9th 2004, 8:32pm

kmail & ssh tunnels

Hi!

Today I found a link on kmail.kde.org article about using KMail and ssh tunnels. Problem is that I can't seem to get it work. Everything is OK if I run script and then test it with telnet e.g.

sshpopportforward.sh ; telnet localhost 11110

but it just doesn't work from KMail. I get the error "Could not connect to localhost". Maybe any1 has an idea why this happens?

--- sshpopportforward.sh script ---
#!/bin/sh

SSH_USERNAME=my_pop3_login
SSH_SERVER=my_pop3_server
SSH_MAIL_SERVER=$SSH_SERVER
ssh -C -f $SSH_USERNAME@$SSH_SERVER -L 11110:$SSH_MAIL_SERVER:110 'sleep 5'; sleep 1


My system:
OS: FreeBSD 5.2.1-RC1
KDE 3.2
KMail 1.6
OpenSSH_3.6.1p1

Thanks!

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Tuesday, February 10th 2004, 7:56pm

I use and have used SSH tunnels without problems for SMTP, POP3 and IMAP from KMail.

Check that the tunnnel is still active when KMail opens the connection and check that you have localhost and the correct port in the network setting.

Cheers,
_
Qt/KDE Developer
Debian User