New Post: Does SftpClient.UploadFile overwrite existing files?
Hi, Thanks for project example,I will try it tomorrow and see what I can find. Thanks,Oleg
View ArticleNew Post: File Corrupt After SFTP Upload
Hmm,Strange,Can you send me the code you are using?Also, would it be possible for me to see the problem for myself?Also, did you try to upload it to different server? Thanks,Oleg
View ArticleNew Post: Does SftpClient.UploadFile overwrite existing files?
Hi,Ok, So I looked at it and to achive what you want to to you need to use Open method instead of OpenWrite.I tried to implemented OpenWrite method similar to File.OpenWrite.So its behaviour is the...
View ArticleNew Post: Delete Symbolic Link
Another thought,As far as deleting directories,You need to use DeleteDirectory method since Delete can delete only files, this is due to SFTP specificationAs far as why it can give you an error here...
View ArticleNew Post: Does SftpClient.UploadFile overwrite existing files?
Hi!Thank you for your answer, I already use Open instead of OpenWrite.I was just wondering if OpenWrite should behave like it behave or like Open with the right parameters. Because when using it I...
View ArticleNew Post: Delete Symbolic Link
Hi!So I made some test on different servers, they all result in the same behaviors.I created a file and a link to it. I created a directory and a link to it. So in my dir I have:linkToDir ->...
View ArticleNew Post: Where are the errors ?
This happens only on MacOS X sftp servers, so I send you a private message with the information to connect and try it.
View ArticleNew Post: Where are the errors ?
Thanks,Ok, So I found an issue.What happens is that SFTP channel is being closed and I am not handling this situation in that case,Will try to come up with a generic fix and will let you know. Thanks,Oleg
View ArticleNew Post: Issue while executing multiple commands
Hi, I have a requirement where i have to fire module load command before submitting a job.My Code sequence is as SshClient client = new SshClient("0.0.0.0", "UN", "PWD"); client.Connect(); SshCommand...
View ArticleNew Post: Where are the errors ?
Hey, I just commited a fix for the problem you described.I could not find an error message to display but now it does not hang but throws an exception saying that channel was closed. Please let me know...
View ArticleNew Post: Renci.SshNet.Common.SshOperationTimeoutException on Disconnect()
Hi Oleg,We have testet your latest version. The situation has improved a lot. Out of 200 attemts 196 successed which is a great improvement. Before your latest changes the result would have been the...
View ArticleNew Post: SCP : Missing files when using DirectoryUpload
Hi,thank you for trying to reproduce. I'm using a very simple code fragment:using (mSsh = new SshClient(address, user, pass)) { mSsh.Connect();using (mScp = new ScpClient(address, user, pass)) {...
View ArticleNew Post: Renci.SshNet.Common.SshOperationTimeoutException on Disconnect()
Hi, Thanks for testing.If you can find out what happens with other 4 times, I would like to see if I could improve that as well, however it might be difficult to track as far as I know :(Well, I am...
View ArticleNew Post: SCP : Missing files when using DirectoryUpload
Hmm,Yea, nothing special there.And what happens if you try to upload to different servers?Does it fails there too? Do you mind send me zipped directory structure that you trying to upload?Just...
View ArticleNew Post: Issue while executing multiple commands
Hi,,Unfortunately, I think by design, when SSH closes channel it does not remeber anything from previouse execution.Also, it seems by design , you cannot execute more then one command per channel.So it...
View ArticleNew Post: Weird problem on SSH Port Forwarding
Does anyone experience problems when trying to port forwarding for more than 3 ports?I use the following code to do SSH Tunneling,ForwardedPortLocal fowardPort = new ForwardedPortLocal("127.0.0.1",...
View ArticleNew Post: "Queue Empty" after stream.Expect
stream.Expect(new Renci.SshNet.ExpectAction("done\r\n", (rS1a) => { writeToLog(rS1a); writeToLog(row.field.ToString() + " sent"); })at...
View ArticleNew Post: "Queue Empty" after stream.Expect
Hi, The Queue is an internal way for me to handle data but you should never get to this situation.I just added could more checks to ensure this does not happen.Please get latest source code and see if...
View ArticleNew Post: Weird problem on SSH Port Forwarding
Hi, I think the example you provided will not compile. I just tried this code:using (SshClient sshClient = new SshClient(connectionInfo)) { sshClient.Connect();var fowardPort = new...
View ArticleNew Post: SCP copy to a specific folder
Hi all - I may be encountering the same issue with directories, otherwise its an untrapped usage error.In ScpClient.NET.cs:private void InternalUpload(ChannelSession channel, PipeStream input,...
View Article