How to connect to linux remote server ?

NALB 61 Reputation points
2023-01-30T12:48:25.81+00:00

Hello ,

I have been trying to connect to remote server using SSH using Microsoft visual studio but nothing is happening after i add all needed data in the cross platform logging I receive the below error connecting then disconnecting

11:33:35.6941763 [Info, Thread 1]	liblinux.RemoteSystemBase: Connecting over SSH to xxxx
11:33:36.7780902 [Info, Thread 1]	liblinux.IO.RemoteFileSystemImpl: Connecting over SFTP to xxx
11:33:39.3000818 [Info, Thread 1]	liblinux.Shell.CommonCommandBase: Command "cat /etc/os-release" finished with exit code 0 after 298.5809ms
11:33:39.5980746 [Info, Thread 1]	liblinux.Shell.CommonCommandBase: Command "uname -m" finished with exit code 0 after 297.281ms
11:33:39.8970738 [Info, Thread 1]	liblinux.Shell.CommonCommandBase: Command "uname -r" finished with exit code 0 after 299.1883ms
11:33:40.1990721 [Info, Thread 1]	liblinux.Shell.CommonCommandBase: Command "g++ -v" finished with exit code 0 after 300.1512ms
11:33:40.4890717 [Info, Thread 1]	liblinux.Shell.CommonCommandBase: Command "clang++ -v" finished with exit code 127 after 289.8193ms
11:33:40.7890707 [Info, Thread 1]	liblinux.Shell.CommonCommandBase: Command "gdbserver --version" finished with exit code 127 after 299.9822ms
11:33:41.0850713 [Info, Thread 1]	liblinux.Shell.CommonCommandBase: Command "gcc -v" finished with exit code 0 after 295.8968ms
11:33:41.3711525 [Info, Thread 1]	liblinux.Shell.CommonCommandBase: Command "gdb -v" finished with exit code 127 after 286.4583ms
11:33:41.6810698 [Info, Thread 1]	liblinux.Shell.CommonCommandBase: Command "/usr/bin/gdb -v" finished with exit code 127 after 308.9318ms
11:33:41.9950679 [Info, Thread 1]	liblinux.Shell.CommonCommandBase: Command "/usr/local/bin/gdb -v" finished with exit code 127 after 314.5698ms
11:33:42.4430672 [Info, Thread 1]	liblinux.Shell.CommonCommandBase: Command "rsync -v" finished with exit code 1 after 447.5424ms
11:33:42.7380674 [Info, Thread 1]	liblinux.Shell.CommonCommandBase: Command "lldb -v" finished with exit code 127 after 295.3465ms
11:33:43.0400660 [Info, Thread 1]	liblinux.Shell.CommonCommandBase: Command "ninja --version" finished with exit code 127 after 300.8438ms
11:33:43.3320651 [Info, Thread 1]	liblinux.Shell.CommonCommandBase: Command "cmake --version" finished with exit code 127 after 292.3541ms
11:33:43.6300644 [Info, Thread 1]	liblinux.Shell.CommonCommandBase: Command "make -v" finished with exit code 0 after 298.269ms
11:33:43.6310646 [Info, Thread 1]	liblinux.RemoteSystemBase: Disconnecting over SSH from XXX
11:33:43.6310646 [Info, Thread 1]	liblinux.IO.RemoteFileSystemImpl: Disconnecting over SFTP from XXX

I have read the Integrated Terminal in Visual Studio: New SSH integration for Linux targeting however in terminals I am not getting the connection in the dropdown ...

Can please someone help me to identify what is the problem and how can I can solve it ?

Thank you

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,604 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,240 questions
{count} votes