Download githubsshtest.py from K00B404/freechat: direct link, hf CLI and curl.
- Browser
- Download file 300 Bytes
-
https://huggingface.co/spaces/K00B404/freechat/resolve/main/githubsshtest.py
- Command line
-
hf download hf://spaces/K00B404/freechat/githubsshtest.py
-
curl -L -o githubsshtest.py https://huggingface.co/spaces/K00B404/freechat/resolve/main/githubsshtest.py
300 Bytes
| import subprocess | |
| def test_ssh_connection(git_host): | |
| try: | |
| subprocess.run(["ssh", "-T", "git@" + git_host], check=True) | |
| print("SSH connection successful") | |
| except subprocess.CalledProcessError as e: | |
| print("SSH connection failed:", e) | |
| test_ssh_connection("github.com") | |