[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  SSH

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: SSH
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1 2  

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Mon 22 Oct 2012 08:49 PM (UTC)  quote  ]

Amended on Mon 22 Oct 2012 08:51 PM (UTC) by Nick Gammon

Message
Those instructions are quite old.

I repeat, that all I did was run the installer here:

https://www.stunnel.org/downloads/stunnel-4.54-installer.exe


No files needed to be added.

I added your MUD to the stunnel.conf file.

I started stunnel.exe.


I connected using MUSHclient to localhost:5555

I see this in MUSHclient:


--- Connected on Tuesday, October 23, 2012, 7:44 AM ---
--- Disconnected on Tuesday, October 23, 2012, 7:44 AM ---
--- Connected for 0 days, 0 hours, 0 minutes, 1 second. ---

--- Received 4 lines, sent 0 lines.
--- Output buffer has 26/5000 lines in it (0.5% full).
--- Matched 0 triggers, 0 aliases, and 0 timers fired.
The "Imperial" server has closed the connection



I see this in the stunnel log file:


2012.10.23 07:44:54 LOG5[1052:2656]: Service [Imperial] accepted connection from 127.0.0.1:1783
2012.10.23 07:44:55 LOG5[1052:2656]: connect_blocking: connected 130.230.72.163:22
2012.10.23 07:44:55 LOG5[1052:2656]: Service [Imperial] connected remote server from 10.0.0.120:1784
2012.10.23 07:44:55 LOG3[1052:2656]: SSL_connect: 1408F10B: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
2012.10.23 07:44:55 LOG5[1052:2656]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket


I'm not sure about the "wrong version number" message.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by ErockMahan   (76 posts)  [Biography] bio
Date Mon 22 Oct 2012 08:28 PM (UTC)  quote  ]
Message
As near as I can tell, I'm doing everything right after meticulously following http://www.gammon.com.au/mushclient/stunnel.htm

There were a few changes here and there, so I'm not sure if this makes the difference. I had to go to the openssl website and download the version of the file mentioned, which did not contain all the components listed (libssl32.dll, libeay32.dll and openssl.exe), but I figured I'd try anyway.

Launching stunnel after doing all the configuration gave me the following result in the log:

2012.10.19 09:28:09 LOG5[5624:4220]: Reading configuration from file stunnel.conf
2012.10.19 09:28:09 LOG5[5624:4220]: FIPS mode is enabled
2012.10.19 09:28:09 LOG5[5624:4220]: Configuration successful

That looked about as good as I could hope, but MushClient seems unable to connect to 'localhost' on port '5555' as I designated (again following the isntructions blindly):

Unable to connect to "MyMUDStunnel", code = 10061 (Connection refused)

Error occurred during phase: Connecting to world: 127.0.0.1, port 5555

For assistance with connection problems see:
http://www.gammon.com.au/forum/?id=8369

Any guess where my disconnect may lie?
[Go to top] top

Posted by ErockMahan   (76 posts)  [Biography] bio
Date Mon 22 Oct 2012 06:45 PM (UTC)  quote  ]
Message
Let me clarify. Step 3 of your instructions reads as follows:

•Stunnel requires the OpenSSL DLLs to work. You can currently find them at http://www.stunnel.org/download/stunnel/win32/openssl-0.9.6l/. Download the file openssl.zip. (That is a lower-case "L" at the end of the URL, not the number "1").
•Unzip the files in it (libssl32.dll, libeay32.dll and openssl.exe) into your c:\stunnel directory.
•If you can't find those files, or want more information, visit the OpenSSL web site.

The first link doesn't go to that page anymore. So going to the OpenSSL website and navigating to their http://www.openssl.org/source/ page, the version (9.6l) can be found and downloaded. Opening it up, though, the libssl32.dll, libeay32.dll and openssl.exe files are not present.
[Go to top] top

Posted by ErockMahan   (76 posts)  [Biography] bio
Date Mon 22 Oct 2012 04:23 PM (UTC)  quote  ]
Message
As near as I can tell, I'm doing everything right after meticulously following http://www.gammon.com.au/mushclient/stunnel.htm

There were a few changes here and there, so I'm not sure if this makes the difference. I had to go to the openssl website and download the version of the file mentioned, which did not contain all the components listed (libssl32.dll, libeay32.dll and openssl.exe), but I figured I'd try anyway.

Launching stunnel after doing all the configuration gave me the following result in the log:

2012.10.19 09:28:09 LOG5[5624:4220]: Reading configuration from file stunnel.conf
2012.10.19 09:28:09 LOG5[5624:4220]: FIPS mode is enabled
2012.10.19 09:28:09 LOG5[5624:4220]: Configuration successful

That looked about as good as I could hope, but MushClient seems unable to connect to 'localhost' on port '5555' as I designated (again following the isntructions blindly):

Unable to connect to "MyMUDStunnel", code = 10061 (Connection refused)

Error occurred during phase: Connecting to world: 127.0.0.1, port 5555

For assistance with connection problems see:
http://www.gammon.com.au/forum/?id=8369

Any guess where my disconnect may lie?
[Go to top] top

Posted by ErockMahan   (76 posts)  [Biography] bio
Date Mon 22 Oct 2012 03:30 PM (UTC)  quote  ]
Message
I have a login that should take me through that prompt once it shows up (I get it when I connect with PuTTY). It just says "login as:" right?

I meant missing files from the "OpenSSL DLLs" you referenced in your instructions.
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Sun 21 Oct 2012 11:12 PM (UTC)  quote  ]
Message
If you SSH from the office, how do you get past the login prompt? The stunnel is designed so that you connect and then answer the usual prompts.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Sun 21 Oct 2012 11:09 PM (UTC)  quote  ]
Message
I downloaded and ran this:

https://www.stunnel.org/downloads/stunnel-4.54-installer.exe

I didn't have any missing files.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by ErockMahan   (76 posts)  [Biography] bio
Date Sun 21 Oct 2012 07:24 AM (UTC)  quote  ]
Message
Then would it be related to the missing libssl32.dll, libeay32.dll and openssl.exe files? I wasn't able to find all of them on the openssl site.

The website for the mud is http://imperialmud.org/, but one does not need to connect via SSH in order to access the MUD:

I seem unable to connect to Telnet from a certain workoffice, but there is an SSH option for implementors (like myself) that I can access with PuTTY. I just miss my incredibly awesome Mushclient features...
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Sat 20 Oct 2012 02:02 AM (UTC)  quote  ]
Message
Can you give a link to the website?

When I try to SSH to imperial.modeemi.fi:22 it looks like a shell login. It asks for a username.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by ErockMahan   (76 posts)  [Biography] bio
Date Fri 19 Oct 2012 11:36 PM (UTC)  quote  ]

Amended on Fri 19 Oct 2012 11:38 PM (UTC) by ErockMahan

Message
client = yes
output = logfile.txt

[Imperial]
connect = imperial.modeemi.fi:22
accept = localhost:5555



[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Fri 19 Oct 2012 11:13 PM (UTC)  quote  ]
Message
So I can attempt to reproduce this, can you post the contents of your stunnel.conf file.

On my tutorial page it was:


client = yes
output = logfile.txt

[mymuck]
connect = mymuck.mymucksdomain.com:8989
accept = localhost:5555

[mysecond]
connect = othermuck.com:4205
accept = localhost:5556


Presumably yours is different. In particular I need to know what MUD you are connecting to.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by ErockMahan   (76 posts)  [Biography] bio
Date Fri 19 Oct 2012 04:37 PM (UTC)  quote  ]

Amended on Fri 19 Oct 2012 05:03 PM (UTC) by ErockMahan

Message
As near as I can tell, I'm doing everything right after meticulously following http://www.gammon.com.au/mushclient/stunnel.htm

There were a few changes here and there, so I'm not sure if this makes the difference. I had to go to the openssl website and download the version of the file mentioned, which did not contain all the components listed (libssl32.dll, libeay32.dll and openssl.exe), but I figured I'd try anyway.

Launching stunnel after doing all the configuration gave me the following result in the log:

2012.10.19 09:28:09 LOG5[5624:4220]: Reading configuration from file stunnel.conf
2012.10.19 09:28:09 LOG5[5624:4220]: FIPS mode is enabled
2012.10.19 09:28:09 LOG5[5624:4220]: Configuration successful

That looked about as good as I could hope, but MushClient seems unable to connect to 'localhost' on port '5555' as I designated (again following the isntructions blindly):

Unable to connect to "MyMUDStunnel", code = 10061 (Connection refused)

Error occurred during phase: Connecting to world: 127.0.0.1, port 5555

For assistance with connection problems see:
http://www.gammon.com.au/forum/?id=8369

Any guess where my disconnect may lie?

Oh, and I should note that I'm able to connect this SSH thing with PuTTY without a problem.
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Mon 22 Jan 2007 08:07 PM (UTC)  quote  ]
Message
If you look in the logfile (logfile.txt in your case) you should see some messages. When I tried it I got:


2007.01.23 07:56:53 LOG7[3636:3596]: SSL state (connect): before/connect initialization
2007.01.23 07:56:53 LOG7[3636:3596]: SSL state (connect): SSLv3 write client hello A
2007.01.23 07:56:53 LOG7[3636:3596]: SSL alert (write): fatal: handshake failure
2007.01.23 07:56:53 LOG3[3636:3596]: SSL_connect: 1408F10B: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number


The "wrong version" appeared to be the problem, so I did some research, and added this line to the stunnel.conf file:


sslVersion = SSLv2


That appeared to eliminate the error message, but then it connected and just did nothing for a while before disconnecting.

I suspect that the username/password negotiation is not working, nor do I know how to make it work.

If I may suggest, if you simply want to connect as a shell to a SSH-secured server, simply use PuTTY, as that definitely works:

http://www.putty.nl/download.html


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Sun 21 Jan 2007 09:30 PM (UTC)  quote  ]
Message
It's not surprising that connecting directly to port 22 doesn't work, because MUSHclient doesn't speak any SSH protocol.

What's a little more surprising is that connecting to localhost 5555, which presumably is connecting to remote host 22, does nothing. I think that stunnel has a log window of sorts if you click on the tray icon; does it have any error messages?

Out of curiosity, has anyone done this successfully before? Something about it bothers me a little bit, because an SSH tunnel normally connects to a remote machine using SSH, and then tunnels your connection to *another* connection on the remote machine.

E.g. you --> localhost:5555 --> remoteserver:22 (SSH tunnel --> remoteserver:5901 (vnc)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Syphon   (5 posts)  [Biography] bio
Date Sun 21 Jan 2007 05:34 PM (UTC)  quote  ]
Message
I got it to work now, But not completely. I'm trying to login my shell account in a buddies box via ssh, using MushClient.
But when I quick connect localhost 5555 It connects then quickly disconnects. When I connect to presidium.org 22 It connects and displays:
SSH-2.0-OpenSSH_4.1p1 Debian-6
And When I hit enter or try to enter my user name this happens and disconnects:
Protocol mismatch.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


4,918 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]