azure-cli-extensions icon indicating copy to clipboard operation
azure-cli-extensions copied to clipboard

az ssh vm does not work on WSL

Open cforce opened this issue 4 years ago • 2 comments

az ssh vm --subscription XXXXXXXXXXXXXXXXXXX --resource-group XXXXXXXXXXXXXXXXXXXXXX --vm-name vm-07 --prefer-private-ip '\wsl$\Ubuntu-20.04\home' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. '\wsl$\Ubuntu-20.04\home' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. '\wsl$\Ubuntu-20.04\home' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. XXXXXX@RDDE01C0:/home$

returns to the local host linux for windows shell

cforce avatar Dec 08 '21 17:12 cforce

VM SSH

jsntcy avatar Dec 13 '21 04:12 jsntcy

@cforce Hi, I wasn't able to repro your issue. Can you make sure that you are using the latest version of az cli and the extension (Run "az upgrade" and "az extension update --name ssh"). If that doesn't fix your issue, we are going to need more information to address this issue (run the command with the --debug parameter and share logs with sensitive information redacted).

vthiebaut10 avatar Jul 05 '22 21:07 vthiebaut10