SSH tunnel from Windows
My SSH tunnel from Windows is not working. To connect I have now tried MobaXterm, Anaconda, and Windows Power Shell. I tried the following things:
-
Without the script on MobaXterm:
ssh -f -D localhost:54321 smomw247@nesh-fe.rz.uni-kiel.de sleep 15
...some waiting ... back to prompt ...chrome-browser --proxy-server="socks5://localhost:54321"
no matter whether using "chromium" oder "chrome" --> "command not found" -
With the script for Windows on MobaXterm (Git bash is installed)
./run_chromium_through_ssh_tunnel_WINDOWS.sh smomw247@nesh-fe.rz.uni-kiel.de http://127.0.0.1:8889/?token=29ed9b500bfb49264316558faa963416586781409b70ce92
Note: I had to set the variable 'browser' manually in this script as MobaXterm adds '/drives' in front of all paths.
A chrome window is opening but with the message "Die Website ist nicht erreichbar 127.0.0.1 hat die Verbindung abgelehnt."
And in der MobaXterm prompt I get:
[5384:8604:0626/191730.302:ERROR:cache_util_win.cc(21)] Unable to move the cache: Zugriff verweigert (0x5) [5384:8604:0626/191730.303:ERROR:cache_util.cc(139)] Unable to move cache folder C:\Users\areintges\AppData\Local\Google\Chrome\User Data\ShaderCache\GPUCache to C:\Users\areintges\AppData\Local\Google\Chrome\User Data\ShaderCache\old_GPUCache_000 [5384:8604:0626/191730.303:ERROR:disk_cache.cc(184)] Unable to create cache [5384:8604:0626/191730.303:ERROR:shader_disk_cache.cc(606)] Shader Cache Creation failed: -2 Wird in einer aktuellen Browsersitzung ge▒ffnet.
-
Without script in Anaconda
ssh -f -D localhost:54321 smomw247@nesh-fe.rz.uni-kiel.de sleep 15
I enter my password, then the session hangs. -
With the script for Windows on Anaconda and Windows Power Shell:
bash run_chromium_through_ssh_tunnel_WINDOWS.sh smomw247@nesh-fe.rz.uni-kiel.de http://127.0.0.1:8889/?token=29ed9b500bfb49264316558faa963416586781409b70ce92
I get this:
will route traffic through smomw247@nesh-fe.rz.uni-kiel.de using port 54321 run_chromium_through_ssh_tunnel_WINDOWS.sh: ssh: command not found run_chromium_through_ssh_tunnel_WINDOWS.sh: tr: command not found run_chromium_through_ssh_tunnel_WINDOWS.sh: paste: command not found Won't use proxy for any of: run_chromium_through_ssh_tunnel_WINDOWS.sh: : command not found
Can anybody help? My approach no. 2 seemed most promising to me.