0

We have some internal services that doesn't have access to the applications we are running in other network. I have a jumpbox I can use to create tunnel and make requests.

I am pretty new to python and found something called sshtunnel-requests. When I am creating a session, Instead of using given key which is not password protected I am getting error "Password is required for key /Users/schilukuri/.ssh/id_rsa"

    session = sshtunnel_requests.Session.from_url(url='ssh://userName@Ip:443', 
              private_key='/Users/schilukuri/serviceuser/.ssh/id_rsa')

    resp =  session.get("url")


    
Ken White
  • 123,280
  • 14
  • 225
  • 444

0 Answers0