Reputation: 1169
i have 2 server A and B both are behind proxies and can access internet
i have a file test.py in server B
import os
os.system ("wget google.com")
now i try to ssh into B from A using following command
ssh B python test.py
however the script cannot access internet...connection to google.com failed.
if i personally ssh into the server B and do the same command it works... Why doesnot it work through the bash script?
Upvotes: 0
Views: 79
Reputation: 1169
The Proxy was not getting set up. So I have to export all my proxy command through that python file
Upvotes: 1