New Post: How to maintain a 'conversation' with an SSH session?
I believe I am looking for the same solution you are. I am trying to figure out how to maintain a SSH interactive session so that I can change to a different user. I initially posted at...
View ArticleNew Post: How to maintain a 'conversation' with an SSH session?
I was just able to solve my issue, and I posted the solution on StackOverflow.
View ArticleNew Post: How to maintain a 'conversation' with an SSH session?
@egagne, I see now that PowerShell is very similar. I, too, took notes from the same emails, and came up with a more .NET-ish solution. So it wouldn't be taken offline, I posted the whole thing (sample...
View ArticleNew Post: CreateShell
Oleg, I used your example to also create a solution: Function SendCommand(cmd As String, s As ShellStream) As String Try reader = New StreamReader(s) writer = New StreamWriter(s) writer.AutoFlush =...
View ArticleNew Post: Renci.SshNet Encryption using Arcfour
I am trying to use the SSH.Net library to connect to a set of computers that have only have the Arcfour (128-bit) encryption enabled on them. The computers are running the OpenSSH software, I am using...
View ArticleNew Post: Why i am not getting complete output while executing time consuming...
hi I am trying to execute some 20 commands of which some takes 5 seconds and some of them might take 5 min. So please let me know what is best approach to get the complete output private void...
View ArticleCreated Unassigned: SftpClient hangs on Diconnect() with certain servers [1814]
I'm experiencing timeout exception on Disconnect method of the SftpClient connected to an OpenSSH server.I've figured out that the server initiates shutdown of the subsystem (sftp-sever) on client's...
View ArticleNew Post: Invoke-SshCommand fails to return to PowerShell
Hello, I have loaded up the SSH-Sessions module in PowerShell (Windows 2012), and I am able to establish a SSH Session between my Windows Server & ASA Firewall. When typing: Get-SshSession I can...
View ArticleNew Post: Access MS SQL server over SSH.NET
Hi Torakas, can you explain me how to connect to sql server using the library. and tell me about port forwarding. I need to execute some queries in a server outside our net, i have ssh access and I can...
View ArticleNew Post: Run scp command from remote server via SSHClient
Hi da_rinkes, I have a similar situation in which I use private keys. Any attempt to scp a file from Server1 to Server2 is met with permission denied (publickey). Is there a way I may provide...
View ArticleNew Post: Renci.SshNet.SftpClient - Serialization Exception
Hi, I'm using Renci.SshNet in my library project, but when my class is executed the following exception occurs (pasted below): Does anyone know how to "mark the Renci.SshNet.SftpClient as...
View ArticleNew Post: Read Line
Is there a way to read only the first line (or first few lines) from a remote file, instead of downloading the entire file to Memory Stream (sftp.DownloadFile)? ReadLines method doesn't seem to help here.
View ArticleNew Post: SftpClient.Exists always return true
Even if a file does not exist SftpClient.Exists will return true. I have double checked that the file does not exist and I have even tried SftpClient.DeleteFile afterwards, which throws a...
View ArticleNew Post: SftpClient.Exists always return true
I have done some debugging and SftpSession.RequestRealPath doesn't return null as SftpClient.Exists expects, but a array of KeyValuePair<string, SftpFileAttributes> with 1 item where...
View ArticleCommented Issue: Process terminated due to unhandled exception in Finalize /...
__My application encountered the following unhandled exception that caused the process to exit:__Framework Version: v4.0.30319Description: The process was terminated due to an unhandled...
View ArticleNew Post: Bug in SftpClient dispose
I have also observed this issue using version 2013.4.7 When is a new release planned? I was not able to compile from source directly from the svn repo using MSVS express 2012.
View ArticleNew Post: Bug in SftpClient dispose
Ok, I wasn't able to build the entire solution but could build the Renci.sshnet.dll I'm testing it now...
View ArticleCommented Issue: Remote File exists not working [1574]
I've tried to use sftp.Exists(String) do not work for files. Already tested for file and for directory. Directory work well, but files are not recognized.Comments: ** Comment from web user: oeriksen **...
View ArticleNew Post: Client KeepAliveInterval and SendKeepAlive
I was hoping someone could give me an example of how to use these 2 commands and exactly what they mean? I'm relatively new to SSH but have a decent understanding... I believe. Such as, if I have a...
View ArticleNew Post: Renci.SshNet.Common.SshOperationTimeoutException
Any resolution to this? I am running into the exact same issue with code that looks almost identical. Any insight you have would be appreciated. Thanks!
View Article