ssh-agent.py 322 B

12345678910111213141516
  1. #!/usr/bin/env python3
  2. import os
  3. import subprocess
  4. import sys
  5. ssh_proxy = os.path.join(os.path.dirname(__file__), "ssh-proxy.py")
  6. argv = [
  7. os.environ.get("NAME", "ssh"),
  8. "-o",
  9. "ProxyCommand={} %h %p".format(ssh_proxy),
  10. "-o",
  11. "Compression=yes",
  12. ]
  13. subprocess.call(argv + sys.argv[1:], env=os.environ)