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

    How to get a file on the system?

    General pfSense Questions
    8
    14
    6.0k
    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.
    • C
      charliem
      last edited by

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

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        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

          @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
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            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.7.2, 24.11

            1 Reply Last reply Reply Quote 0
            • KOMK
              KOM
              last edited by

              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

                Filezilla is a good alternative to WinSCP.

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  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.7.2, 24.11

                  1 Reply Last reply Reply Quote 0
                  • dennypageD
                    dennypage
                    last edited by

                    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
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      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

                        @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
                        • jimpJ
                          jimp Rebel Alliance Developer Netgate
                          last edited by

                          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
                          • KOMK
                            KOM
                            last edited by

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

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.