cancel
Showing results for 
Search instead for 
Did you mean: 

Cloud Foundry python app outbound connectivity is not working

MarioC
Explorer

Hello Community!

I have develop a python app that uses the library paramiko to connect via ssh to a remote server, when I run the aplication locacaly on my pc the app runs just fine, however when running the app in a cloud foundry enviroment I get the error paramiko.ssh_exception.NoValidConnectionsError: [Errno None] Unable to connect to port on ip, I dont know if this is because I have to somehow configure the inbound/outbound connection on the cloud foundy environment.

Thanks in advance for your help

Kind Regards

Mario

gregorw
Active Contributor
0 Kudos

Do you try to connect to another System in the Internet or via Cloud Connector to On Premise?

MarioC
Explorer
0 Kudos

Is a connection via internet, when I run it locally I dont use Cloud Connector, just the ssh credentials

gregorw
Active Contributor
0 Kudos

Is it a SSH connection? No HTTP(S)?

MarioC
Explorer
0 Kudos

Hi Gregor, Yes, the python APP attemps a SSH with the paramiko library but gets the error paramiko.ssh_exception.NoValidConnectionsError

Accepted Solutions (1)

Accepted Solutions (1)

gregorw
Active Contributor
0 Kudos

I would suggest that you enable ssh access to your deployed app and then try if you can connect from there via ssh. You might need to use the apt-buildpack to install a ssh client. But I think outgoing ssh connections might be not allowed. Only http(s) connections are possible.

Answers (0)