-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to set tssh as vscode default tools when create a new remote window? #138
Comments
What is your purpose of using tssh in vscode? If you want to use trzsz in the vscode terminal, modifying remote.SSH.path is not supported. You can open a local shell first, and use tssh in the local shell to log in to the server, which will support trzsz. If you want to use tssh's automated-interaction feature to log in to the server, you need to write a script and change remote.SSH.path to the script.
#!/bin/bash
# vscode requires -V to output OpenSSH
if [[ " $@ " =~ " -V " ]]; then
echo "OpenSSH"
exit 0
fi
# replace -v with --debug
args=()
for arg in "$@"; do
if [ "$arg" != "-v" ]; then
args+=("$arg")
else
args+=("--debug")
fi
done
# call tssh
tssh "${args[@]}"
@echo off
setlocal enabledelayedexpansion
rem vscode requires -V to output OpenSSH
for %%A in (%*) do (
if "%%A"=="-V" (
echo OpenSSH
exit /b 0
)
)
rem replace -v with --debug
set args=
for %%A in (%*) do (
if "%%A"=="-v" (
set args=!args! --debug
) else (
set args=!args! %%A
)
)
rem call tssh
tssh %args% |
Is this normal on your win? I still can't bring up win11 file browser to upload. I suspect that vscode remote.SSH.path does not take effect |
trzsz ( trz / tsz ) is not supported even you set After you log in to the remote server in vscode, execute the following command in Windows PowerShell: Get-WmiObject Win32_Process | Where-Object { $_.CommandLine -like '*tssh*' } | Select-Object ProcessId, CommandLine You will see the output similar to this:
When you open multiple remote terminals in vscode, the number of ssh processes will not increase. That's because each terminal in vscode is implemented by vscode itself through tssh cannot capture the input and output of each terminal in vscode, so it cannot support trzsz. |
fine.
|
What will be the output of executing |
OpenSSH |
The weird thing is that vscode will report an error It may be a permission issue, can you try |
even i directly run it in vsocde bottom terminal:
|
The output |
The |
I have tried change ”remote.SSH.path“ to "C:\Users\wyjbot\AppData\Local\Microsoft\WinGet\Links\tssh.exe" .but it not work
The text was updated successfully, but these errors were encountered: