This lets you do the following: Use native clients on non -Windows local computers (example: a Linux PC). Connect to a VM using the az network bastion tunnel command. I need the C# equivalent to be able to emulate my Desktop WinSCP application where I pass the SSH command ssh to freely upload from the source Windows server through a Linux Security Server to the remote Linux file server.Ĭan these examples be combined to create the C# code I need? A WinSCP session/SSH tunnel via Asynchronous Command. If you want to connect using SSH and need to upload files to your target VM, use the az network bastion tunnel command instead. I can can successfully send asynchronous SSH commands using this: , I believe that the session context changes there and some asynchronous C# magic needs to happen. However when I send the command ssh my script hangs there. Using C# I can successfully upload or send a command using this Session.ExecuteCommand method/. If the SSH server is on a different machine from where you installed the tunnel, enter
0 Comments
Leave a Reply. |