Tag Info

Hot answers tagged

9

Check out the AUTHORIZED_KEYS FILE FORMAT section of the sshd man page. Then add something like the following to ~root/.ssh/authorized_keys (where the ssh-ed25519 ... part is replaced by your ssh public key): from="192.168.1.0/24" ssh-ed25519 AA... Then that key will only be allowed from your particular network. Also, make sure you have the following in ...


5

Man page in Linux was detailed a bit. sh -c [-aCefnuvxIimqVEb] [+aCefnuvxIimqVEb] [-o option_name] [+o option_name] command_string [command_name [argument ...]] -c Read commands from the command_string operand instead of from the standard input. Special parameter 0 will be set from the command_name ...


3

The jail and the host system will both share the same kernel. So: Old jail, recent host: Running an outdated jail on a newer host should not cause any issue (the FreeBSD kernel will ensure retro-compatibility, enabled by default even for pre-FreeBSD 8 kernel as a kernel compilation option), Recent jail, old host: I would not try to run a newer jail on an ...


3

The configuration change you made means "allow root from 192.168.1.0/24, deny everything else". In other words, only the conditions that match are allowed access. You could try this instead: AllowUsers root@192.168.1.? anotheruser1 anotheruser2 That means root from 192.168.1.0/24, and the other two users from anywhere.


2

The "corrupt" file is stored in /var/db/freebsd-update/ The files are named for their hash. You may be able to proceed simply by deleting the file that was downloaded incorrectly, so that your next run if freebsd-update downloads it again. sudo rm /var/db/freebsd-update/5f019a418777cb657afa2135ec50532d4a61f8c6b1373e4e4f6b173f3aa98741.gz I have always ...


2

100GB+ of data seems best fit for private torrent. Here is some basic info on how to start off: Creating a Private Torrent


2

I'd tar and compress before I sent over SSH - the encryption will just slow things down if you try SCP or similar natively. tar cvzf - /path/to/files | ssh user@host.com -C -c blowfish "cat - > bigtarball.tgz" If you want smarted things like synchronising collections of files after the copy, go grab the free version of Bittorrent Sync at ...


2

The form: sh -c '...' name arg1 arg2 ... is called inline-script, often seen in combination with find ... -exec sh -c '...' find-sh {} +. Inside inline-script, $0 will be set to name, and the rest of arguments was populated to $@. In general, you should set it to something meaningful, because it will be used for instance showing error messages: sh -c ...


2

Sure, with the standard /usr/src installed it might run something like # cat /etc/src.conf CFLAGS=-pipe DEBUG_FLAGS=-g # cd /usr/src/usr.bin/vi # make clean && make obj && make depend && make && make install # gdb -d /usr/src/contrib/nvi/ex -d /usr/src/contrib/nvi/common -tui ex


1

Blocking LAN access: If pf.conf knows what your LAN subnet is, you can selectively block traffic from it. Using your example: block in all pass out all keep state lan_subnet = "10.0.0.0/24" block in quick proto tcp from $lan_subnet to any port 22 pass in proto tcp from any to any port 22 Rate-limiting WAN but not LAN: Say for example you want to ...


1

FreeBSD's tar doesn't support the xar format, but once again ports to the rescue - archivers/xar seems to be what you want!


1

You can create a symbolic link to the target directory. To follow your example: ln -s /mystuff/here/anotherfolder/anotheronehere/oops/myvideosfolder ~/videos


1

The error says that no default destination exists. To quote from the printcap(5) manpage: The default printer is normally lp, though the environment variable PRINTER may be used to override this. Each spooling utility supports an option, -P printer, to allow explicit naming of a destination printer. So either change the first line of your printcap ...


1

Since I couldn't find an accurate guide for setting up FreeBSD 10 as a domU under Xen either, I wrote my own. I believe you're using a newer OS release and Xen version than me, but the process should be similar. Here's the gist: Download a FreeBSD 10 ISO (I used FreeBSD-10.1-RELEASE-amd64-disc1.iso) and put console="comconsole" in its /boot/loader.conf to ...


1

I'm experiencing the same behavior. This has happened a few times in the past year, and it appears to have typically been due to errors in updating the mirrors. I retried a couple times and hit a good mirror, you could try forcing it to use particular ones and see how that goes. I believe it was either update5 or update6 that worked for me. Alternately, ...


1

You seem to be having a number of issues, summarised below. You almost certainly should be using a port for python as noted by @mjturner, which will use the native FreeBSD OpenSSL. in csh the syntax set CC clang sets two variables named CC and clang to the empty string, you want set CC=clang, but even that won't work (see next point) simply setting a ...



Only top voted, non community-wiki answers of a minimum length are eligible