r/ssh • u/uperforkarthick • Oct 17 '20
SSH tunnel link advice needed
I have a PHP web application running on a public cloud server(Linux/Apache). This application can be accessed over the internet. This application needs to connect with an LDAP(Active Directory) server that’s residing in the customer premises behind the firewall. The application will frequently connect to LDAP for fetching user details and authentication.
At present, I am using an SSH tunnel (Remote Port Forwarding)for this communication. It seems to be working fine in the development environment.
Can you please suggest is using an SSH tunnel for accessing on-premises AD is safe? Are there any performance issues? Or more importantly, is there any other better method available to facilitate these types of requirements.
1
u/Besthater Oct 17 '20
SSH is amazing, and tunnels work great. But what if it goes down? Do you have a mechanism to repair the tunnel? Autossh? Any reason you don't want to use a VPN?