• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

How to get a file on the system?

Scheduled Pinned Locked Moved General pfSense Questions
14 Posts 8 Posters 6.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K
    KOM
    last edited by Aug 25, 2016, 1:30 PM

    I'm sure I'm being dumb here, but how do you get a binary file onto 2.3.x these days?  I used to use the File Manager package, but it's no longer there.  Attempts to SCP the file bump into the login menu.  I don't have the file on a web server somewhere to wget it from.

    1 Reply Last reply Reply Quote 0
    • D
      dotdash
      last edited by Aug 25, 2016, 1:37 PM

      If you have physical access, a usb key is an easy way to copy files over that you can't fetch.

      1 Reply Last reply Reply Quote 0
      • C
        charliem
        last edited by Aug 25, 2016, 2:02 PM

        In the GUI, "Diagnostics –> Command Prompt --> Upload File" is one way to do it.

        1 Reply Last reply Reply Quote 0
        • K
          KOM
          last edited by Aug 25, 2016, 2:09 PM

          If you have physical access

          It's virtual.

          "Diagnostics –> Command Prompt --> Upload File" is one way to do it.

          Brilliant!  I hadn't thought to look there.

          1 Reply Last reply Reply Quote 0
          • S
            Starrbuck
            last edited by Aug 25, 2016, 2:54 PM

            @KOM:

            I'm sure I'm being dumb here, but how do you get a binary file onto 2.3.x these days?  I used to use the File Manager package, but it's no longer there.  Attempts to SCP the file bump into the login menu.  I don't have the file on a web server somewhere to wget it from.

            What do you mean by SCP bumps into the login menu?  In the past, I have been able to copy files over using WinSCP.  I can't check right now, but perhaps it worked because I was using SSH keys and/or used SFTP instead of SCP. You might try either of those and see if it helps.

            1 Reply Last reply Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator
              last edited by Aug 25, 2016, 3:43 PM Aug 25, 2016, 3:29 PM

              when you ssh in as root you bump into the console menu..  If you ssh in another user you don't from what I remember..  I don't normally scp, but use sftp via either gui app like filezilla or just the putty sftp client psftp if not on a linux client, etc.

              
              > psftp -v root@pfsense.local.lan
              Connecting to 192.168.9.253 port 22
              We claim version: SSH-2.0-PuTTY_Snapshot_2016_07_19.9398d23
              Server version: SSH-2.0-OpenSSH_7.2
              Using SSH protocol version 2
              Doing ECDH key exchange with curve Curve25519 and hash SHA-256
              Server also has ssh-rsa host key, but we don't know it
              Host key fingerprint is:
              ssh-ed25519 256 8e:0a:32:4a:da:50:8f:af:d0:21:14:3c:7f:ef:19:fc
              Initialised ChaCha20 client->server encryption
              Initialised Poly1305 client->server MAC algorithm (in ETM mode) (required by cipher)
              Initialised ChaCha20 server->client encryption
              Initialised Poly1305 server->client MAC algorithm (in ETM mode) (required by cipher)
              Reading key file "D:\Dropbox\tools\devputty\ed25519.ppk"
              Using username "root".
              Offered public key
              Offer of public key accepted
              Authenticating with public key "ed25519"
              Sent public key signature
              Access granted
              Opening session as main channel
              Opened main channel
              Started a shell/command
              Connected to pfsense.local.lan
              Remote working directory is /root
              psftp> ls
              Listing directory /root
              drwxr-xr-x    5 root     wheel         512 Aug 22 04:08 .
              drwxr-xr-x   25 root     wheel        1024 Jul 29 19:20 ..
              
              

              When doing that you don't run into the console.  Would have to do some testing with scp..  But seems you already found your solution just use the upload file aspect of the diag menu..

              So I just did a scp copy and looks to be working just fine using root, I do use public key - scp and passwords not a good mix..

              
              > scp test.zip root@pfsense.local.lan:test.zip
              test.zip                                                                                     100% 5303KB   7.4MB/s   00:00
              
              

              on a bit of a side note for those forced/stuck/choose to use windows - installing the windows port of openssh makes it a bit less painful for ssh/scp/sftp etc.. ;)
              http://www.mls-software.com/opensshd.html

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • K
                KOM
                last edited by Aug 25, 2016, 4:58 PM

                I was running off of a Winbox and didn't have a real scp to use at the time and didn't want a big rigamarole of nonsense just to get a file from A to B.  WinSCP just times out trying to connect.  Regardless, now that you can edit existing files and up/download others, all is well.

                1 Reply Last reply Reply Quote 0
                • K
                  kpa
                  last edited by Aug 25, 2016, 6:47 PM

                  Filezilla is a good alternative to WinSCP.

                  1 Reply Last reply Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator
                    last edited by Aug 25, 2016, 7:14 PM

                    I hear ya kom.. I would have to test with winscp.. Use to be a good tool back in the day.. Then there was that whole opencandy nonsense he did and I stopped using it.  From my understanding he stopped doing that.. But that was a real kick to his reputation balls ;)

                    Part of the reason I linked to the windows openssh install..  gives you actual openssh on you winbox.. And while putty is sweet psftp is handy, sometimes you just want to do everything on cmd line ;)  Having openssh installed on my winbox current even

                    C:>ssh -V
                    OpenSSH_7.3p1, OpenSSL 1.0.2h  3 May 2016

                    Comes in handy for sure..

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                    1 Reply Last reply Reply Quote 0
                    • D
                      dennypage
                      last edited by Aug 26, 2016, 4:50 AM

                      I scp to pfSense as root from FreeBSD, Linux and Mac all the time. I've never run into an issue. It's been a few years since I used Windows… Perhaps there is something particular to the tool being used on Windows?

                      1 Reply Last reply Reply Quote 0
                      • J
                        jimp Rebel Alliance Developer Netgate
                        last edited by Aug 26, 2016, 1:41 PM

                        If you scp as admin@ it gets the menu and breaks. Use root for scp, it should work fine. I use plain scp, ultraedit/uex, filezilla, winscp, and others and they all connect fine using root@.

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        1 Reply Last reply Reply Quote 0
                        • C
                          charliem
                          last edited by Aug 26, 2016, 1:51 PM

                          @johnpoz:

                          on a bit of a side note for those forced/stuck/choose to use windows - installing the windows port of openssh makes it a bit less painful for ssh/scp/sftp etc.. ;)
                          http://www.mls-software.com/opensshd.html

                          If you or your users are forced to use windows, another good option is MobaXterm (http://mobaxterm.mobatek.net).  It's a SSH client, X-server, and more (RDP, VNC, ftp, serial, etc)  Also uses sftp to populate a GUI file browser/manager on the target system.  Though I don't use the GUI panel much, it's another option for folks that prefer a GUI.

                          It's my go-to tool now for remote access of any kind; nice to have so many connection methods in one tool.

                          1 Reply Last reply Reply Quote 0
                          • J
                            jimp Rebel Alliance Developer Netgate
                            last edited by Aug 26, 2016, 1:59 PM

                            There is always cygwin and now if you're on Windows 10 Anniversary Update, native Ubuntu integration with bash.

                            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

                            1 Reply Last reply Reply Quote 0
                            • K
                              KOM
                              last edited by Aug 26, 2016, 5:01 PM

                              Admin vs root was my issue.  Thanks to everyone who helped out.

                              1 Reply Last reply Reply Quote 0
                              14 out of 14
                              • First post
                                14/14
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                This community forum collects and processes your personal information.
                                consent.not_received