----- Original Message -----
From: "Jeff Gutierrez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 30, 2002 7:39 PM
Subject: Re: [plug] stunnel question
> #man page is your bestfriend :-> perhaps you are confuse with the ssh
> #parameters... here is an example to create a tunnel for pop3 (port 110)
or
> #any tcp ports
> #
> #ssh -2 -N -f -L 12345:localhost:110 [EMAIL PROTECTED]
> #
>
> Trust me, dude.. I've tried them all. Why don't you try it yourself.. Put
the command in your rc.local or to its startup script.
>
> su - <user> -c "ssh -2 -N -f -L 12345:localhost:110
[EMAIL PROTECTED]"
trust me too dude :-> here is what you are going to do:
1. create a key by running ssh-keygen under normal user
ssh-keygen -t type
its up to you to choose what type of key to create for ssh version 2
protocol.. either *rsa* or *dsa*.. let say dsa for example
ssh-keygen -t dsa
it will create two files to ~user/.ssh/id_dsa and ~user/.ssh/id_dsa.pub
2. add the contents of id_dsa.pub to remote server of the same user to this
file ~user/.ssh/authorized_keys2
3. at the local server, copy ~user/.ssh/id_dsa to /root/.ssh/id_dsa
4. add to your /etc/rc.d/rc.local with this line
ssh -2 -N -f -L 12345:localhost:110 [EMAIL PROTECTED]
5. reboot and enjoy
you can add -v (for verbose) to see what is going on during boot up..
fooler.
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]