Hi, What Putty does most probably is not just a ssh connection, but a redirection like LocalForward, too.
Here, you only try to connect from the client to the server on port 22, which is the one used by ssh server, and not the port of the database.
You may try to connect directly to the db port if it's supported. Otherwise, you may setup two stunnel services, one client and one server.
Regards, Flo
On Tue, Feb 26, 2019 at 9:14 AM Eetu Pikkarainen eetu.pikkarainen@oulu.fi wrote:
Hi, I am a totally newbie with this. We have intranet system in Windows Server (32bit) which reads a database (Oracle) situated in Unix machine via a tunnel made by Putty.exe. That works well except that the connection gets lost every now and then and it must be manually logged in every time. So I decided to try stunnel which we used earlier to read email from email server. However I cannot set the connection successfully. This is what I have tried now (among many other alternatives):
[Kanto2] client = yes accept = 127.0.0.1:1501 connect = kanto2.oulu.fi:22 protocolUsername = <username> protocolPassword = <password>
stunnel reads the configuration OK except this notification:
[:] Service [Kanto2] needs authentication to prevent MITM attacks
but when the database is tried to read happens this:
2019.02.18 13:32:30 LOG5[1]: Service [Kanto2] accepted connection from 127.0.0.1:64699 2019.02.18 13:32:30 LOG5[1]: s_connect: connected 130.231.240.100:22 2019.02.18 13:32:30 LOG5[1]: Service [Kanto2] connected remote server from 130.231.241.250:64700 2019.02.18 13:32:30 LOG3[1]: SSL_connect: 140770FC: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol 2019.02.18 13:32:30 LOG5[1]: Connection reset: 0 byte(s) sent to TLS, 0 byte(s) sent to socket
I have tried different protocol alternatives with no help. What could be the problem? Is this kind of use even possible?
thanks
Eetu Pikkarainen PhD (Ed.), (Title of) Adjunct Prof., University Lecturer (in Education) Faculty of Education, University of Oulu, Finland Research Group: https://wiki.oulu.fi/display/theored
Latest publications:
Semiotic Theory of Learning: New Perspectives in the Philosophy of
Education. By Andrew Stables, Winfried Nöth, Alin Olteanu, Sébastien Pesce and Eetu Pikkarainen https://www.taylorfrancis.com/books/e/9781351725170
Schools in Transition: Linking Past, Present, and Future in
Educational Practice. Edited by Pauli Siljander, Kimmo Kontio and Eetu Pikkarainen
https://www.sensepublishers.com/catalogs/bookseries/other-books/schools-in-t...
stunnel-users mailing list stunnel-users@stunnel.org https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users