Hello, I'm trying to copy a public key to FreeBSB and I always use the same command, however FreeBSD syntax is a little different to what I'm used to.
My command is:
However I receive the error:
My command is:
Bash:
linuxmint@linuxmint:~$ cat ~/.ssh/id_rsa.pub | ssh admin@192.168.1.170 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
Password for admin@pfSense.localdomain:
However I receive the error:
Bash:
usage: mkdir [-pv] [-m mode] directory_name ...