|
SFTP is not supported as it is FTP over SSH, a completely different protocol (use SSH.NET for that)
Oops.
Marc
|
|
|
|
|
The most complete library I know of is SSH.NET[^].
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Brisingr Aerowing wrote: The most complete library I know of is SSH.NET[^].
Ah, I just came across the resurrected version of it (resurrected from sourceforge, onto CodePlex, and now moved to GitHub )
Marc
|
|
|
|
|
Brisingr Aerowing wrote: The most complete library I know of is SSH.NET[^].
And we have a winner.
Marc
|
|
|
|
|
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
I don't know. I played around with WinSCP for a couple of days in December because we switched from FTP to FTPS and had to rewrite some legacy code. After reading this forum, I'll take a look at SSH.net next time.
|
|
|
|
|
5 lines of code to do a file upload:
SftpClient sftp = new SftpClient("192.168.0.3", "[username]", "[password]");
sftp.Connect();
var st = new FileStream(@"c:\foo.txt", FileMode.Open);
sftp.UploadFile(st, "/home/debian/foo.txt");
sftp.Disconnect();
The only nuance was that the target (second parameter) must also include the filename. The WinSCP.NET dll implementation doesn't require this. With SSH.NET, finding that was a bit annoying, as the exception message was "Failure!" That was helpful. Had to read through a couple forums with people having the same error to find someone that posted "you need the filename on the destination path."
Marc
|
|
|
|
|
jgakenhe wrote: switched from FTP to FTPS
Just to make sure everyone reading this thread understands there is a difference between SFTP and FTPS.
WinSCP does not do FTPS as far as I can tell; it does SFTP. SFTP basically wraps copying files with SCP (which in turn uses SSH), and FTPS is FTP over SSL. These follow very different protocols to achieve the same result.
|
|
|
|
|
Yes you're right, it is FTP over SSL. WinSCP has some documentation on FTPS at: FTPS :: WinSCP[^].
|
|
|
|
|
Ok, thanks. I did not see that information.
|
|
|
|
|
WinSCP .NET Assembly is an option
"The WinSCP .NET assembly winscpnet.dll is a .NET wrapper around WinSCP’s scripting interface that allows your code to connect to a remote machine and manipulate remote files over SFTP, FTP, WebDAV and SCP sessions from .NET languages, such as C#, VB.NET, and others, or from environments supporting .NET, such as PowerShell, SQL Server Integration Services (SSIS), ASP.NET and Microsoft Azure WebSite." winscp.net
|
|
|
|
|
I did get the WinSCP.NET assembly working (quite easily) but it requires that the exe be installed, whereas ssh.net worked just as easily without any dependencies. Also, when I tried WinSCP.NET, I had an older version of the exe, and got an incompatibility exception, so I don't want to create the added annoyance of having to make sure the exe and dll are sync'd.
Marc
|
|
|
|
|
|
Brisingr Aerowing wrote: NSFW
Which does not belong in the lounge, if you've bothered to read the guidelines.
|
|
|
|
|
It's just a pillowcase printed with a picture of Nick Cage, during his "I need to attract more gay fans" period.
I think what Brisingr meant was that it's Not Safe For Anywhere.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Click bait. Now Amazon will start suggesting poop and pillows to whoever clicks this. Why did I take the red pill?
|
|
|
|
|
Click-bait it ain't, for four clear reasons:
0. There is no advertising on the page, at all.
1. It doesn't make you click through several ad-filled pages, before finally allowing you to do the click that you go there for.
2. It isn't "filled" with fifty words of badly written text on a poorly thought out topic, which describes itself as "an article".
3. It is actually quite a fun idea.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
True. But all I'm saying is the ad push comes after you click on them.
|
|
|
|
|
Yeah, well, from sales sites, you expect crassness.
It doesn't look like the guy made the site for money; he did it for a laugh.
That's fine by me. I'd have a beer with him.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
|
Brisingr Aerowing wrote: Found using Weird or Confusing[^] My first click brought me this[^].
I gotta buy it!
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
You'd better hurry! It's discontinued by the manufacturer and there are only 16 left in stock!
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
No, not this Metaprogramming[^]
I'm referring to this metaprogramming[^]
Be sure to read the comments as well.
Not sure what I wanted to convey with this, but he has a point, successful programs products usually starts small with a visionary in the lead, rather than run by a management team.
|
|
|
|
|
Very few coders would I give the title "programmer".
Of those, even fewer, "software engineer"
Of those, even fewer, "metaprogrammer"
That said, the kind of successful programs that he's talking about in the article (Turbo Pascal, CP/M, QDOS, WordStar, MSWord, Lotus123) well, most of those are archaic, and even the origins of MSWord and Lotus are archaic in their 1.0 versions.
It was also a very different time. Come on, Turbo Pascal had a text-based IDE with special text characters to draw the frames.
Nowadays, a successful product requires a small village with several visionaries -- back-end, front-end, security, customer support, social media marketing, cross-platform / mobile, etc.
It's not the same game anymore.
[edit]Oh, and a lot of those characters he mentions as metaprogrammers are also narcissistic egomaniacs. [/edit]
Marc
|
|
|
|
|
Marc Clifton wrote: Oh, and a lot of those characters he mentions as metaprogrammers are also narcissistic egomaniacs
You can still get a long way being a narcissistic egomaniac. Just think Apple.
|
|
|
|