Hi, this is just a little note.

In /etc/init.d/functions of the BOEL initrd, in the function start_ssh(), if I
want to use a ssh tunnel, a long sleep (4 hours) is remotely executed on the
server to keep the connection alive.

I think it could be better to use this command:

ssh -l $SSH_USER -N -f -L873:127.0.0.1:873 $IMAGESERVER $REDIRECTION_OPTIONS

In this case ssh doesn't execute any remote command on the server (-N option),
so the connection is kept until the client explicitly kill the task (or reboots)
and no tasks are created on the server... this is only a client-side application.

Moreover this solution allows to create in the image server a user reserved
exclusively to port-forwarding, forbidding the remote login; we can do this by
creating a user with /sbin/nologin as the default shell (in /etc/passwd).

Bye,
Andrea.



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
_______________________________________________
Sisuite-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to