cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to establish SSH tunnel connection to SCP virtual machine

0 Kudos

Hi,

I'm following the steps from here: https://blogs.sap.com/2017/01/19/sap-hana-cloud-platform-virtual-machines./comment-page-1/#comment-4...

I was successful in creating and checking the VM from the console, up to step 10. The steps for the creation of the crypted key via OpenSSL and Putty are all right too (up to step 20 then).

However, in the 3rd exercice to connect to the VM, the command open-ssh-tunnel fails with the following message:

(!) ERROR: Unable to establish tunnel connection

What is surprising as the IDs are similar to those used for the VM creation...

I double-checked the VM ID and tried with SDK from Tomcat 8 and EE7 versions, both end-up with same results...

Here the used command with accurate info instead of the XX

C:\Users\XXX\Frank\work\SDK\tools>neo open-ssh-tunnel --vm-id XXXX-1XXX-XX-XXX0f-XXXX --account a70415fca --host eu1.hana.ondemand.com --user XXXXX

I also tried to desactivate the firewall before executing the command, same error...

Thank you in advance if someone has an idea of the problem.

Accepted Solutions (0)

Answers (1)

Answers (1)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Frank,

There might be a firewall blocking ports on your local machine. Trying to pause or close firewall protection software can allow you to open the port with success. This should give you a hint is there is a software blocking the port. Once you have configured the firewall software it may be required that you specify a port number explicitly via the following parameter:

--port XXXXX

You could also install SAP Cloud Connector and use the Service Channel option to establish a secure tunnel to your VM.

This software will allow you to connect to your cloud account and establish tunnels with HANA DB, VM for outbound connectivity. Not to mention the inbound connectivity to on-premise systems via HTTP destinations.

Please check this documentation.

Best regards,
Ivan