Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How do I connect to SSH with Stunnel?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How do I connect to SSH with Stunnel?

rixnetrixnet Member

Hi,

My server and client configuration is as follows:

Server: Installed and configured Stunnel.

Stunnel.conf:

pid = /var/run/stunnel.pid
cert = /etc/stunnel/stunnel.pem
[ssh] 
accept = public_ip:443
connect = 127.0.0.1:22

Client: My OS: Windows. Installed and configured Stunnel.

Client Stunnel.conf

pid = /var/run/stunnel.pid
cert = /etc/stunnel/stunnel.pem
[ssh]
accept = public_ip:443
connect = 127.0.0.1:22

The connection is successful. I open Putty. Server IP: 127.0.0.1, port: 22. But it is not connected. Where am I making mistakes?

Comments

  • mkshmksh Member

    what are trying to archive with this? SSH over stunnel does not make any obvious sense to me. Also how is the connection successful when it is not conencted? Maybe try switching the accept/connect values on the client config?

    Thanked by 1WSS
  • oneilonlineoneilonline Member, Host Rep

    Are the ports open on both the server and client? Is the client a residential location? Is the router at your home config correctly? Are the paths correct on the windows client?

  • WSSWSS Member
    edited August 2017

    You're telling your stunnel client to connect wrong, unless you're trying to connect to your loopback.

    client

    client = yes
    accept = 127.0.0.1:port
    connect = external-host:port
    
Sign In or Register to comment.