Quantcast
Channel: SSH.NET Library
Browsing all 2955 articles
Browse latest View live
↧

New Post: Does SSH Class need shell access on remote Linux system ?

When i use SSH.RunCommand and send Unix commands... is it necessary for the user used by the SSH to have a shell access or not ? Today i configured the SSH and the user had /bin/scponly and the command...

View Article


New Post: How to deal with the error stream when using ShellStream

client.Connect(); var shell = client.CreateShellStream("test", 80, 24, 800, 600, 1024); var input = "cd /nonexistant"; shell.DataReceived += (sender, args) =>...

View Article


New Post: How to deal with the error stream when using ShellStream

thanks, i will try your codes . the reason why not using RunCommand it that when i test running "nohup" command or a script containing "nohup" command and the command is finished,the program is...

View Article

New Post: How to deal with the error stream when using ShellStream

Yeah... Don't use Thread.Sleep() here. This is just guessing and makes your code unreliable. Example: Replace your "ping -c 10 127.0.0.1" with a "ping -c 10 google.com" and it will fail. Since it takes...

View Article

New Post: How to deal with the error stream when using ShellStream

On second glance i found a bug in your code: if (shells.CanRead) output = shells.ReadLine(); match = regex.Match(output); match.Success will never become true. ReadLine() blocks till a newline appears....

View Article


Created Unassigned: Permission Denied while doing an SFTP with Public Private...

Hi,We have an intermittent issue where the SFTP fails when we use the Public Private key mode of authentication.Below is the code snippet which is used to connect to SFTP.using(Renci.SshNet.SftpClient...

View Article

Commented Unassigned: Permission Denied while doing an SFTP with Public...

Hi,We have an intermittent issue where the SFTP fails when we use the Public Private key mode of authentication.Below is the code snippet which is used to connect to SFTP.using(Renci.SshNet.SftpClient...

View Article

Commented Unassigned: Permission Denied while doing an SFTP with Public...

Hi,We have an intermittent issue where the SFTP fails when we use the Public Private key mode of authentication.Below is the code snippet which is used to connect to SFTP.using(Renci.SshNet.SftpClient...

View Article


New Post: Pageant integration?

Sorry to double post but no one has a copy of this patch?

View Article


New Post: How to deal with the error stream when using ShellStream

thanks for all reply i have done the work. here is my code. string input = String.Empty; string output = String.Empty; bool isFirst = true; private void SSHConnect() { client = new...

View Article

New Post: Accept Host Key Automatically?

If the administrator provided you a host key, then you should only proceed with the connection if the host key matches. See this post for how to: https://sshnet.codeplex.com/discussions/318027

View Article

New Post: Pageant integration?

I believe this is the patch you are looking for. I use this in some sshnet tools. I did have to tweak one file to deal with the security differences in windows 7 (pageantprotocol.cs) so I've attached...

View Article

New Post: Pageant integration?

I guess my attachments didn't post correctly from my mobile. I will get these posted this evening.

View Article


New Post: Pageant integration?

Thank you for doing that xl600! I noticed your changes above so was going to do those anyway. If you removed the SFTP portion in your patch if you have the original that would be great as I plan to try...

View Article

New Post: ConnectionInfo.Timeout Exception

When a ConnectionInfo.Timeout is defined for a sftp connection or the default 30 seconds is used, what happens when that time has elapsed. Is an exception thrown like SshOperationTimeoutException? I...

View Article


Patch Uploaded: #17214

xl600 has uploaded a patch.Description:This is a re-upload of a previously declined pageant integration patch by mladjenovic. The original download link mentioned in discussion...

View Article

New Post: Pageant integration?

I had to upload the old patch files as a new patchid (Which will most certainly be declined). It is available here. The modification for Windows 7 to pageantprotocol.cs follows:using System; using...

View Article


New Post: Illegal characters in SFTP File upload

I see so I think ill need to change the code in UploadFile to remove these breaks?

View Article

New Post: Stability while in beta; "stable" timeframe

drieseng wrote: I've been working on performance tuning lately, but I'll now focus on fixing the following issue: issue 2591: Session.Disconnect() hangs forever Once that issue is fixed, we'll probably...

View Article

New Post: BeginSynchronizeDirectories Example

Does anyone have an example usage of BeginSynchronizeDirectories? I'm currently using this statement:IEnumerable<FileInfo> fileInfo = sftpClient.SynchronizeDirectories(sourceDirectory,...

View Article
Browsing all 2955 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>