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

New Post: Enabling debugging for SSH library

$
0
0

Hi,

Sorry for late response but I am busy now with another project at work so dont have much free time now.
Recently I tried to improve on all hanging issues, specifically in connect method, but it seems I still missing something.
There are some debugging messages that are being generated by the library but this part was created by another developer who created a web page where he explains how to turn them on so please check out this url

If you can pinpoint to where it hangs please let me know and I will try to fix it as soon as possible, unfortunalty I know that those kind of problems is hard to replicate.

Hope it helps.
Thanks,
Oleg


New Post: ListDirectory - SftpPathNotFoundException

$
0
0

Yoav,
Sorry for late response, I guess I just missed your question but unfortunately I wont be able to help there since this is an error that I am getting from the server so all I am doing is just prorogating it back to the client.

bdelaney,
As far as SynchronizeDirectories, this piece was contributed by other developer so I cant say much there but if you can provide me with test case code showing how it suppose to work I will try to look at it as soon as I can.

Thanks,
Oleg

New Post: ListDirectory - SftpPathNotFoundException

$
0
0

Great job on keeping up with things here Olegkap. I bet you could use some help. In particular, I think there is a lack of sample code and clear instructions. The library is HUGE and I believe a little inconsistent. (but hey, at least lots of folks are contributing :-)

I will be sure to append more details to this discussion thread as I push through using various aspects of ssh.net. In the future, if I can help with documentation, perhaps that can be my contribution.

I did get the SynchronizeDirectoriess command working. I was about ready to look at the source code when I realized it was just a matter of correctly specifying the parameters. Having no knowledge of SFTP standards hampered my understanding of the requirements.

New Post: ListDirectory - SftpPathNotFoundException

$
0
0

Hi,

Thanks,
I am glad you got it working.
Yea, I agree that needs more documentation.
Unfortunately I don't have much time for it lately and when I do have time I prefer to do fixes or some requested features.
If you want to help with sample documentation then let me know and I can add you as a developer then but would need to explain how to embedded.
I recently come up with a way to embed sample code in the project comments, reference it in test so sample code could be embedded into generated documentation but also participate in test cases.
Just thought to do two things at once :)

Thanks,
Oleg

New Post: Enabling debugging for SSH library

$
0
0
<div dir="ltr"><div>Thanks so much for your reply. I will check out the debugging link you have provided and post back with any findings. </div> Good luck on your work project! Michael </div><div> <div>On Thu, Jan 31, 2013 at 11:23 PM, olegkap <span dir="ltr">&lt;<a href="mailto:notifications@codeplex.com" target="_blank">notifications@codeplex.com</a>&gt;</span> wrote: <blockquote style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex"><div><p>From: olegkap</p><div>Hi, Sorry for late response but I am busy now with another project at work so dont have much free time now. Recently I tried to improve on all hanging issues, specifically in connect method, but it seems I still missing something. There are some debugging messages that are being generated by the library but this part was created by another developer who created a web page where he explains how to turn them on so please check out this [url](<a href="http://sshnet.codeplex.com/wikipage?title=Troubleshooting%20SSH.NET&referringTitle=Documentation" target="_blank">http://sshnet.codeplex.com/wikipage?title=Troubleshooting%20SSH.NET&referringTitle=Documentation</a>) If you can pinpoint to where it hangs please let me know and I will try to fix it as soon as possible, unfortunalty I know that those kind of problems is hard to replicate. Hope it helps. Thanks, Oleg</div><div><div><p>Read the <a href="http://sshnet.codeplex.com/discussions/431467#post994996" target="_blank"> full discussion online</a>.</p><p>To add a post to this discussion, reply to this email (<a href="mailto:sshnet@discussions.codeplex.com?subject=[sshnet:431467]" target="_blank">sshnet@discussions.codeplex.com</a>)</p><p>To start a new discussion for this project, email <a href="mailto:sshnet@discussions.codeplex.com" target="_blank"> sshnet@discussions.codeplex.com</a></p><p>You are receiving this email because you subscribed to this discussion on CodePlex. You can<a href="https://sshnet.codeplex.com/discussions/431467/unsubscribe/" target="_blank"> unsubscribe</a> on CodePlex.com.</p><p>Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com</p></div></div></div></blockquote></div></div>

New Post: Code Samples in the tests not seen

$
0
0

Hi,
you wrote:
"Code Samples
Sample code can be found by looking at the test cases included in the source code. "

but i downloaded ur code, and did not see the tests code.
Can you please check ur uploaded code. or i am wrong?

thanks.

New Post: Code Samples in the tests not seen

$
0
0

Hi,

There is a Renci.SshNet.Test project in the solution when you download source code from the source code tab where you can find some example.

Hope it helps,
Thanks,
Oleg

Source code checked in, #22896


New Post: SCP copy to a specific folder

$
0
0

Hi,

Yes,
I looked at it and it seems when I did last changed I fully forgot about situation where path is rooted and started with "/"

I just committed a code, 22896, that should handle this situation so please check it out and let me know if it works.

Thanks,
Oleg

New Post: ListDirectory - SftpPathNotFoundException

$
0
0

Oleg,
I'm interested in learning about the embedding of sample code in project comments, etc. What you described above sounds very efficient and would help the test effort.

I've barely touched the source code so far, but I'm looking at the SynchronizeDirectories feature today. How would I find the developer who contributed that? Say, if I had questions or wanted to generate documentation on it, or even contribute a change to it?!

For example, I did some testing and got unexpected results. I tracked it to a region of the source code "upload the difference" which has this comment:

//  TODO:   Use md5 to detect a difference
//ltang: File exists at the destination => Using filesize to detect the difference

Which in my use case makes it less useful.
I guess if I were documenting this function, I'd include a note about that.

I'm really new to Codeplex and I imagine there is some way to hunt this up in a project fork and learn who the developer is. I'll investigate a little more today. (Oh, I get it. I have to be a member of the project to use TFS, or I have to use Subversion) I'm more familiar with TFS.

I did try to use the online changeset history and look for it that way. But all of the 375 commits are owned by you and I did find 1 SynchronizeDirectories, #22075, which is a refactoring. But I'm not sure why the web-based diff tool does not present the code changes very well. http://sshnet.codeplex.com/SourceControl/changeset/22075. Maybe what I'm seeing here is that the function is added to Silverlight but already existing in the sftp.client.net?

Obviously I have a lot to learn, but this may get me to put a project up on Codeplex myself. Then I'll learn faster.

Speaking of that, I wonder how good Codeplex is about linking together 'parent-children' projects. If I use ssh.net in my project, I'll be sure to mention that.
Oh, I found one way to see if projects are connected. If another project's coordinator is following your project, it may because he is using your project. For instance, dbsend is using ssh.net but I only discovered it by looking at the author because he was following ssh.net.

New Post: SFTP Parallel Downloads again

$
0
0

notrix,

I was trying to recreate this problem but all I am getting is to "Session operation has timed out" exception as it was designed.
Can you may be provide a code that you using where you get "Safehandle has been closed" exception?

mikkoljay,

Did you try to compile it in different VS.NET version as it mentions in other thread?

Thanks,
Oleg

New Post: ListDirectory - SftpPathNotFoundException

$
0
0

Hi,

Well, when I was using latest version of the sandcastle, I discovered that I can reference the sample code which are located in separated file(s) and more then that, I can have many different examples in one file which are separated by region.
So I figured why cant I combine my tests along with documentation. This will grantee that all my samples works.

As far as project, I used TFS before too, but I find that subversion in that case is much more convenient to use, may be its a personal preference I guess. So if you want to contribute sample, tests or both then I can add you as a developer in the project and you could check in code directly. The only thing I would ask you is to use subversion since TFS adds some additional information to project and solution files and directories.

I am not sure if its possible to find parent-child projects on codeplex but I guess I would be curios to know it myself.

If you like, you can contact me on Skype where my nick is olegkap and we can discuss more.

Thanks,
Oleg

Source code checked in, #22898

$
0
0
Fix problem when huge files could be cut off in the middle

Commented Issue: SftpClient deletefile/delete fails [1484]

$
0
0
using (SftpClient sftp = new SftpClient(hostName, portNumber, userName, passWord))
{
sftp.Connect();
sftp.Delete(remotePath);
}

Code throws &quot;Permission Denied&quot; error, but i have permission to delete file. I confirmed this using WinSCP both their UI and .NET library (works fine).
Comments: ** Comment from web user: mcpunjabi **

Unfortunately i was busy with work, so sorry for the late reply. I did some more tests and the issues seems to be with sftp.Exists(filename) function. Here is what i am using in my application:

using (SftpClient sftp = new SftpClient(hostName, portNumber, userName, passWord))
{
sftp.Connect();
if(sftp.Exists(remotePath))
sftp.Delete(remotePath);
}

Logs show that the Exists command tries to download file and fails and when it gets to the Delete call server throws the "File in Use" error. ( not the "permission denied error" like the exception shows).

Created Issue: SftpClient deletefile/delete fails after Exists check [1497]

$
0
0
I am trying to delete a file after checking for existance, Below is the code:

```
using (SftpClient sftp = new SftpClient(hostName, portNumber, userName, passWord))
{
sftp.Connect();
if(sftp.Exists(remotePath))
sftp.Delete(remotePath);
}
```

Logs show that the Exists command tries to download file and fails and when it gets to the Delete call server throws the &quot;File in Use&quot; error. ( not the &quot;permission denied error&quot; like the exception shows).

Thanx.

Source code checked in, #22899

$
0
0
Improve SftpClient Exists method

Commented Issue: SftpClient deletefile/delete fails after Exists check [1497]

$
0
0
I am trying to delete a file after checking for existance, Below is the code:

```
using (SftpClient sftp = new SftpClient(hostName, portNumber, userName, passWord))
{
sftp.Connect();
if(sftp.Exists(remotePath))
sftp.Delete(remotePath);
}
```

Logs show that the Exists command tries to download file and fails and when it gets to the Delete call server throws the &quot;File in Use&quot; error. ( not the &quot;permission denied error&quot; like the exception shows).

Thanx.
Comments: ** Comment from web user: olegkap **

Hey,
I could not recreate your problem but I just committed a code where I do exists check a little different without opening a file like I did earlier.
Can you please download it a see if it fixes your problem?

Thanks,
Oleg

New Post: A Little Help With Connection Settings

$
0
0

Hey,
Sorry for late response but I dont think you using this library based on your code example.
Some methods and properties dont exists.

And again, I am not so familiar with unix to know how to make "ll" command work :(:(

Thanks,
Oleg

Commented Issue: SftpClient deletefile/delete fails after Exists check [1497]

$
0
0
I am trying to delete a file after checking for existance, Below is the code:

```
using (SftpClient sftp = new SftpClient(hostName, portNumber, userName, passWord))
{
sftp.Connect();
if(sftp.Exists(remotePath))
sftp.Delete(remotePath);
}
```

Logs show that the Exists command tries to download file and fails and when it gets to the Delete call server throws the &quot;File in Use&quot; error. ( not the &quot;permission denied error&quot; like the exception shows).

Thanx.
Comments: ** Comment from web user: mcpunjabi **

Yes, works fine now. Thanx.

Closed Issue: SftpClient deletefile/delete fails after Exists check [1497]

$
0
0
I am trying to delete a file after checking for existance, Below is the code:

```
using (SftpClient sftp = new SftpClient(hostName, portNumber, userName, passWord))
{
sftp.Connect();
if(sftp.Exists(remotePath))
sftp.Delete(remotePath);
}
```

Logs show that the Exists command tries to download file and fails and when it gets to the Delete call server throws the &quot;File in Use&quot; error. ( not the &quot;permission denied error&quot; like the exception shows).

Thanx.
Comments: Ok, good,
Closing it now
Viewing all 2955 articles
Browse latest View live




Latest Images