NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Here you can discuss about your favorite plug-in.
User avatar
HaRT
Moderator
Posts: 10806
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 220 times
Been thanked: 357 times

NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post by HaRT »

Latest post of the previous page:

KlepetoX wrote: Sun 13 Mar, 2022 07:59 simple macro
I'd suggest checking the plug-in GUID rather than panel prefix, as that's more reliable:
win.Uuid(panel.GetPanelInfo(nil,1).OwnerGuid):upper()=='42E4AEB1-A230-44F4-B33C-F195BB654931'
Last edited by HaRT on Sun 13 Mar, 2022 14:46, edited 1 time in total.
Reason: Added suggested check code
Фар есть инструмент, а не нянька. © 2009 DrKnS
Shmuel
Posts: 6815
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 41 times
Been thanked: 526 times

NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post by Shmuel »

HaRT, here's a slightly shorter version:
panel.GetPanelInfo(nil,1).OwnerGuid==win.Uuid('42E4AEB1-A230-44F4-B33C-F195BB654931')
User avatar
HaRT
Moderator
Posts: 10806
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 220 times
Been thanked: 357 times

NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post by HaRT »

Shmuel wrote: Sun 13 Mar, 2022 14:55 slightly shorter version
And yet slightly shorter: panel.GetPanelInfo(nil,1).OwnerGuid==win.Uuid'42E4AEB1-A230-44F4-B33C-F195BB654931'
;-)
Фар есть инструмент, а не нянька. © 2009 DrKnS
Helix751
Posts: 2
Joined: Thu 10 Mar, 2022 18:42

NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post by Helix751 »

KlepetoX wrote: Sun 13 Mar, 2022 07:59 Try this simple macro, change key as you like
This has to go as a file in <Fardir>\Addons\Macro\ ?
Shmuel
Posts: 6815
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 41 times
Been thanked: 526 times

NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post by Shmuel »

Helix751 wrote: Wed 30 Mar, 2022 16:44 This has to go as a file in <Fardir>\Addons\Macro\ ?
As a file with extension .lua in %FARPROFILE%\Macros\scripts.
perverez
Posts: 13
Joined: Thu 03 Jul, 2014 11:07

NetBox - SSH-2.0-OpenSSH_9.2

Post by perverez »

Hello,

I use NetBox for FTP and SFTP. Today, after updating our hosting server, my SFTP authentication via Private key file stopped working. I compared my connection to other servers with the same key and found that it does not authenticate to "Server version: SSH-2.0-OpenSSH_9.2". With the same key I tried connecting via PuTTY and WinSCP, here everything works fine, so the problem is probably on the NetBox side. In the attachment I am sending two logs from the connection for comparison - functional and non-functional.

Can you advise me where the error may be? I would hate to stop using NetBox.

Thank you. P.
Attachments
non-functional.log
(8.3 KiB) Downloaded 34 times
functional.log
(9.5 KiB) Downloaded 30 times
Last edited by perverez on Wed 14 Jun, 2023 11:01, edited 1 time in total.
pepak
Posts: 604
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 17 times
Been thanked: 54 times

NetBox - SSH-2.0-OpenSSH_9.2

Post by pepak »

Your "non-functional" server apparently doesn't accept RSA keys (ssh-rsa). Create a ECDSA or EdDSA key, add it to the server configuration, and it will work (I am using ssh-ed25519).

Note that Netbox requires its keys in the PPK version 2 format, not PPK version 3 which is the default these days (see "Key -> Parameters for saving key files" in puttygen).
User avatar
HaRT
Moderator
Posts: 10806
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 220 times
Been thanked: 357 times

NetBox - SSH-2.0-OpenSSH_9.2

Post by HaRT »

 ! Message from: HaRT
perverez, I moved your topic to the appropriate subforum and merged it with the appropriate existing topic. In future, please give more thought to whether you actually need a new topic and where you create one.
Фар есть инструмент, а не нянька. © 2009 DrKnS
perverez
Posts: 13
Joined: Thu 03 Jul, 2014 11:07

NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post by perverez »

pepak,
Hello, thank you for your reply. I don't think the problem is not accepting RSA keys (ssh-rsa). As I wrote, I tried the same key under PuTTY and under WinSCP, where it works without any problem. Changing the key to ssh-ed25519 solved the problem, but I don't think it's a complete solution.
Post Reply

Return to “General Plug-In Discussions”