Author Topic: SFTP client  (Read 1240 times)

Per E. Johannessen

  • Sr. Member
  • ****
  • Posts: 295
  • Karma: +4/-0
    • View Profile
SFTP client
« on: May 21, 2025, 06:28:14 pm »
Can anyone recommend a recent/updated SFTP-client?
The connection I'll try to setup is to an external server accepting RSA-2048 keys.


Mentore

  • Full Member
  • ***
  • Posts: 245
  • Karma: +13/-0
    • View Profile
Re: SFTP client
« Reply #1 on: May 22, 2025, 09:05:58 am »
IIRC I ported an old version of NcFtp years ago, I don't remember if it was SFTP compliant - most probably not. I may try to search for a more recent version.

Mentore

Remy

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +14/-1
    • View Profile
Re: SFTP client
« Reply #2 on: May 22, 2025, 12:51:49 pm »
You can give a try to FireFTP addon (it will work under our latest firefox or seamonkey.
I have it under firefox OS/2 (ArcaOS 5.1.1) and often use it.

It looks like this addon is allready available directly from fireftp.net link =>  https://github.com/mimecuvalo/fireftp/releases
Just tested he latest and 2.0.32 works too.
 
Note: if addon installed is refused for not signed addon under firefox, you can set under about:config
xpinstall.signatures.required to false
 
« Last Edit: May 22, 2025, 08:14:58 pm by Remy »

Per E. Johannessen

  • Sr. Member
  • ****
  • Posts: 295
  • Karma: +4/-0
    • View Profile
Re: SFTP client
« Reply #3 on: May 22, 2025, 03:50:47 pm »
Found this about the server;

"To ensure the highest level of data integrity and confidentiality, Mastercard requires all our customers to use SFTP/SSH with enhanced security requirements. This includes using longer keys to strengthen encryption and ensure the safe transmission of information. Mastercard requests its customers to update their systems according to the new security requirements."

They recently changed requirements and now only accept longer keys. Most likely the SFTP client have to be a lot newer than what is currently
available for OS/2 as well.
Looked at NetDrive and SFTP plugin but they've not been updated for years either.

Does anyone use a SFTP client to connect to a server that requires "highest level of data integrity and confidentiality" as stated by Mastercard?

Remy

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +14/-1
    • View Profile
Re: SFTP client
« Reply #4 on: May 22, 2025, 05:52:19 pm »
Other option: Did you have a look on OpenSSH ?

Per E. Johannessen

  • Sr. Member
  • ****
  • Posts: 295
  • Karma: +4/-0
    • View Profile
Re: SFTP client
« Reply #5 on: May 22, 2025, 06:31:22 pm »
Yes, and OpenSSH looks promising but unfortunately I would need a frontend for it.
I could do with a cmd-line version, however there is another user who refuses to use anything that has no GUI.

Remy

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +14/-1
    • View Profile
Re: SFTP client
« Reply #6 on: May 22, 2025, 08:08:53 pm »
Yes, and OpenSSH looks promising but unfortunately I would need a frontend for it.
I could do with a cmd-line version, however there is another user who refuses to use anything that has no GUI.

If you have some knowledge with rexx, use drdialog and create a GUI (frontend) to issue command but of course, for a nice GUI with a lot of function it will need a lot of work and better to find some shh gui if exist.

Create dialogs to get needed information to issue the sftp command using a "get" or what else named button which will issue the command (as detach command)  with pipe mode, get messages back from the pipe into an other dialog until end of sftp process.
 

Steven Levine

  • Jr. Member
  • **
  • Posts: 80
  • Karma: +12/-0
    • View Profile
Re: SFTP client
« Reply #7 on: May 22, 2025, 08:46:57 pm »
Have you considered Peter Moylan's SFTP client?

  ftp://anonymous@ftp.pmoylan.org/FtpServer/SFTPClient_0.1.zip

See

  http://www.pmoylan.org/pages/os2/FtpServer.html

for more details.  Peter supports these via the

  Moylan FTP Server Mailing List <ftpserver-list@os2voice.org>


Per E. Johannessen

  • Sr. Member
  • ****
  • Posts: 295
  • Karma: +4/-0
    • View Profile
Re: SFTP client
« Reply #8 on: May 22, 2025, 09:46:45 pm »
Thanks, I wasn't aware of Peter Moylan's SFTP client, I'll have a look at it.
Found SFTPClient_1.1.zip in ftp://anonymous@ftp.pmoylan.org/SFTPServer/

Steven Levine

  • Jr. Member
  • **
  • Posts: 80
  • Karma: +12/-0
    • View Profile
Re: SFTP client
« Reply #9 on: May 23, 2025, 05:12:51 am »
Sorry for the bad link.  It was a leftover from the early development testing.

1.1 is the current version.

BTW, I missed the GUI requirement.  Unfortunately, SFTPClient is a VIO app.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5406
  • Karma: +128/-1
    • View Profile
Re: SFTP client
« Reply #10 on: May 23, 2025, 05:42:05 am »
I looked at Qt SFTP clients, found one but it has a dependency on botan. Spent last night looking at botan's weird Python based build system, and yes it is weird. They also refuse to support any OS that the original vendor has dropped support for.
https://github.com/sandsmark/QSsh
https://botan.randombit.net/
Botan is interesting and with makefile editing, it builds fine with a broken DLL, only failure was get_pid(), not sure about calling it from C++.

Steven Levine

  • Jr. Member
  • **
  • Posts: 80
  • Karma: +12/-0
    • View Profile
Re: SFTP client
« Reply #11 on: May 23, 2025, 06:12:10 am »
There's no problem calling C code from C++ as long as the declarations are properly wrapped in extern "C" blocks.

We don't have a get_pid, but we do have getpid which libc defines in sys\process.h and it is properly wrapped.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5406
  • Karma: +128/-1
    • View Profile
Re: SFTP client
« Reply #12 on: May 23, 2025, 07:53:17 am »
There's no problem calling C code from C++ as long as the declarations are properly wrapped in extern "C" blocks.

We don't have a get_pid, but we do have getpid which libc defines in sys\process.h and it is properly wrapped.

OK, that explains things.
I actually managed to build a statically linked botan.exe and botan-test.exe, the library is over 14 MB's.
Running botan-test.exe gets quite a ways before crashing at,
...
Code: [Select]
argon2:
terminate called recursively
terminate called recursively

terminate called after throwing an instance of 'Killed by SIGABRT
pid=0xstd::system_error2f0e ppid=0x0076 tid=0x0009 slot=0x00df pri=0x0200 mc=0x0
001 ps=0x0010
'
H:\TMP\BOTAN\BOTAN-TEST.EXE  what():  Operation not permitted

terminate called recursively
Creating 2F0E_09.TRP
Moved 2f0e_09.TRP to W:\var\log\app\682fa811-2f0e_09-BOTAN-TEST-exceptq.txt
Need to add a -g somewhere. trp attached
Probably going to have to ask upstream for advice in building a working DLL. Source will need some patching to support sockets, with luck only an include but probably avoid IPv6 stuff.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5406
  • Karma: +128/-1
    • View Profile
Re: SFTP client
« Reply #13 on: May 23, 2025, 08:16:30 am »
I had a brain fart, it was getpid(). Added the include and it compiled. For modern code, it rejected GCC 9.2.0 as too old, so far only an include needed :)

Mentore

  • Full Member
  • ***
  • Posts: 245
  • Karma: +13/-0
    • View Profile
Re: SFTP client
« Reply #14 on: May 23, 2025, 08:50:41 am »
I had a brain fart, it was getpid(). Added the include and it compiled. For modern code, it rejected GCC 9.2.0 as too old, so far only an include needed :)

Great news. ISTR I had worked on botan time ago, but I don't remember if I had success on it. I don't even remember why I tried to port it, but surely it was a part of another package, maybe something QT related...

Mentore