Hi all,
I've tried this feature, but have had an error:
az ssh arc --resource-group rg-name --name server-name --local-user local-user-name
Failed to run ssh command with error: [WinError 2] The system cannot find the file specified.
Ensure OpenSSH is installed and the PATH Environment Variable is set correctly.
Alternatively, use --ssh-client-folder to provide OpenSSH folder path.
As this command advised, I tried to add "--ssh-client-folder" pointing to installed OpenSSH - C:\Windows\System32\OpenSSH , but also without any luck. Moreover, it's a bit odd that the same error appears, when I try to connect from a Linux server.
In addition, error message looks even more interesting with "--debug" key on a windows server:
cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception:
cli.azure.cli.core.util: Traceback (most recent call last):
File "C:\Users\Administrator\.azure\cliextensions\ssh\azext_ssh\ssh_utils.py", line 65, in start_ssh_connection
connection_status = subprocess.run(command, env=env, text=True)
File "subprocess.py", line 501, in run
File "subprocess.py", line 966, in __init__
File "subprocess.py", line 1435, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
I would appreciate any ideas on solving this problem.