ConnectionAttempts question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I want to make a TCP forwarding for a MySQL database. To connect to a
database that is in, I do this:

ssh -f -L 20000: -o 'StrictHostKeyChecking no'
username@localhost -N

This works without any problem. But if I disconnect my computer from
the local network, I lose the TCP forwarding. I've been reading about
this and I find this option: 'ConnectionAttempts'. Using this option I
can set how many tries to make before exiting. I would like to know if
'ConnectionAttempts' can be [INFINITE] or something similar, so it'll
try continuously until I connect the computer again to the network.

Thanks for your help!

Re: ConnectionAttempts question

Ok, autossh will do the work for me :)

Perro Flaco ha escrito:

Quoted text here. Click to load it

Site Timeline