How to get a file on the system?
-
In the GUI, "Diagnostics –> Command Prompt --> Upload File" is one way to do it.
-
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.
-
@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.
-
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 -
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.
-
Filezilla is a good alternative to WinSCP.
-
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 2016Comes in handy for sure..
-
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?
-
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@.
-
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.htmlIf 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.
-
There is always cygwin and now if you're on Windows 10 Anniversary Update, native Ubuntu integration with bash.
-
Admin vs root was my issue. Thanks to everyone who helped out.