I ran into this post that suggests adding the following to
.ssh/authorized_keys in order to force an
scp command :
no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,command="scp -v -r -d -t ~/CONTENT" ssh-rsa AAAAMYRSAKEY...
The solution works great but I couldn't find any information about the
-t options in the
scp manual. After some searching I managed to find another post that shed some light`:
-tis normally the receiving end of an scp transfer. It's launched by another scp instance which is going to send files to the receiving end. The sending scp instance starts the receiver, sends the C line to mark that a file is coming, then sends the data for the file.
Any idea what what effect the
-d option has?
Also, out of curiosity, does anyone know if/where I could find an official description. I wasn't able to find anything in the source code.