New Post: validating fingerprint as string
Here's another example: using (var sftp = new SftpClient(host, username, password)) { sftp.HostKeyReceived += (sender, e) => { var knownFingerprint = "ssh-rsa 2048...
View ArticleNew Post: Stop PortForwarding is toooooooo slow !
From my tests the codes waits toooooooo long for the ssh to stop the forwarded port ! If i use plink then the stop proccess is much more faster... I think it's a bug .... In order to overcome the issue...
View ArticleNew Post: Port Forwarding is been stopping to slow !
Well it is a long time no news about the beta ? Will this issue be fixed finally ?
View ArticleNew Post: Port Forwarding is been stopping to slow !
I cannot find the connection timeout you are saying ... Where is that property ? Is which class ?
View ArticleNew Post: Remove File
Hello there,Is there any way to remove file through SCP class ? Generally how can i remove remove files using the component ? I do not mean using the ssh.runcommand("rm filename"). I do not want to...
View ArticleNew Post: Remove File
Use SFTP. SCP => "Secure copy"http://en.wikipedia.org/wiki/Secure_copy
View ArticleNew Post: Stop PortForwarding is toooooooo slow !
Maybe you can track down the issue and provide a patch for it? I made some fixes a while ago to speed up stop of forwarded...
View ArticleNew Post: Remove File
Well yeah you are right ...in your point ! Shall i ask something else ? 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 ?...
View ArticleNew Post: Stop PortForwarding is toooooooo slow !
Please provide me a test version of the component and tell you after my tests ! I only a day to do it !
View ArticleNew Post: Stop PortForwarding is toooooooo slow !
It is not a problem for me to do it ! It is easy to import it to my app !
View ArticleNew Post: Stop PortForwarding is toooooooo slow !
Nope, not gonna releasing testable binaries. This is drieseng territory :) But you are free to download the sources, apply the patch from my experimental tree and compile it. Should be an easy task. If...
View ArticleNew Post: How to deal with the error stream when using ShellStream
When I use ShellStream to get the output like putty or plink,i have some questions. First,I can get the stdout correctly by using following codes. ShellStream shells = client.CreateShellStream("test",...
View ArticleNew Post: How to deal with the error stream when using ShellStream
What is this for?i < 4 Error output (STDERR) is included in the shell stream. So your code looks OK, beside the i < 4 test.
View ArticleNew Post: Stop PortForwarding is toooooooo slow !
ahaha ! Never new that this job was some else job ! ok then i will take the experimental tree... not a problem actually ...try it today or tomorrow and come back for news !
View ArticleNew Post: How to deal with the error stream when using ShellStream
da_rinkes wrote: What is this for?i < 4 Error output (STDERR) is included in the shell stream. So your code looks OK, beside the i < 4 test. thanks for reply using the following example ,i try to...
View ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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