Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | RE: SSH Tunnel Help |
|---|---|
| Date: | Tue, 28 Sep 2004 08:50:35 +0200 |
Try this: # set up SSH tunnel ssh -L 8110:mailserver:110 -L 8025:mailserver:25 -f -N username@host.com -----Mensaje original----- De: Phusion [mailto:phusion2k@gmail.com] Enviado el: viernes, 24 de septiembre de 2004 22:35 Para: secureshell@securityfocus.com Asunto: SSH Tunnel Help I have a shell script that creates a SSH tunnel when I check my email. I am using OpenSSH (protocol 2). Here are some things to know about before you look at the script: first, I can ssh without entering a password, and secondly in evolution I have it set to check mail on the localhost with ports 8110, and 8025. Here is what the script looks like: #!/bin/sh # set up SSH tunnel ssh -L 8110:mailserver:110 -L 8025:mailserver:25 username@host.com 'sleep 600; exit' & # start up Evolution evolution The problem with my script is that the SSH tunnel is only good for 10 minutes. So if I read through my email and it takes me 15 minutes, then I decide to send email or check email again, it won't work because of the SSH tunnel being closed. Is there a better way to do this? Is there a way I can make a shell script to create the SSH tunnel, start evolution, the when I close evolution, the SSH tunnel will close. I was thinking that it might be possible by having it check to see if the evolution process id is running or not. Let me know how I can do this? If anyone has any better ideas about this let me know. Thanks. Phusion ----------------------------------------------------------------------------------------------- Este correo electronico y, en su caso, cualquier fichero anexo al mismo, contiene informacion de caracter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgacion, copia o distribucion a terceros sin la previa autorizacion escrita de Alcampo S.A.. En el caso de haber recibido este correo electronico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvio a la direccion electronica del remitente. ----------------------------------------------------------------------------------------------- Se han omitido los acentos a proposito debido a incompatibilidades de visualizacion de los mismos con algunos clientes de correo. ----------------------------------------------------------------------------------------------- The information in this e-mail and in any attachments is confidential and solely for the attention and use of the named addressee( s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Alcampo S.A.. If you have received this communication in error, please, notify the sender by reply e-mail. -----------------------------------------------------------------------------------------------
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Blocking ssh but not sftp/scp, Laurence Moughan |
|---|---|
| Next by Date: | Re: Locking down ssh config in large env, Bartek Krajnik |
| Previous by Thread: | SSH Tunnel Help, Phusion |
| Next by Thread: | SSH Tunnel Help, Phusion |
| Indexes: | [Date] [Thread] [Top] [All Lists] |