Gaia: Invalid command:’scp -t’ Error

Invalid command:’scp -t /path/to/dir/’

This article explains the cause of the “Invalid command:’scp -t xxxxx'” error and how to solve it.

Background

Researching this error actually brought to my attention two undocumented switches of the scp command: “-f” and “-t”.

These flags are automatically added to the command when it’s run depending on whether you’re copying to (-t) or from (-f):

Command                                                                                                              Actual command run

scp ./myfile.txt   name@server:/myfile.txt               scp -t /myfile.txt

scp  name@server:/myfile.txt  ./myfile.txt               scp -f /myfile.txt

This can be seen when running scp with the -v verbose/debug flag:

linux:/ # scp -v myfile.txt name@server:/home/name/myfile.txt
Executing: program /usr/bin/ssh host server, user admin, command scp -v -t /home/admin/myfile.txt
<snip>
CLINFR0329  Invalid command:'scp -v -t /home/name/myfile.txt'.
linux:/ #

Solution

Besides being of interest regarding the -f and -t flags, the only thing that we can really glean from this is that the remote system doesn’t recognise the command, the flags or both.

In the case of Checkpoint Gaia it is down to the fact that the default shell is “clish” and not bash which is required for scp.

To mitigate this we can set the default login shell to be bash, either temporarily or permanently, using a quick command from clish:

gw-8f991f> set user admin shell /bin/bash
gw-8f991f> save config
gw-8f991f>

To make this change only temporarily, do not use the “save config” command.

To revert the change:

gw-8f991f> set user admin shell /etc/cli.sh
gw-8f991f> save config

Hope you save yourself some time!

10 Replies to “Gaia: Invalid command:’scp -t’ Error”

  1. What a fantastic place to discover new games without any hassle. The mobile interface runs perfectly on my phone and I never experienced any lag during live sessions. The bonuses are genuinely fair and the terms are easy to understand. Keep up the wonderful work. jeetbuzz777

  2. Navigating the casino scene in the Philippines can be tricky but 3jlplogin makes it incredibly smooth for us. Local payment methods are supported from day one and my e wallet deposits reflect instantly. The live dealer streams are crystal clear and the hosts are friendly and professional. I also noticed that promotions are tailored to our regional holidays which shows they really pay attention to their community. If you want a platform that feels built specifically for Filipino players you will love what they have to offer. 3jlplogin

  3. [2076]1mcuci Official Login | Trusted Online Casino with Fast Payouts,1mcuci provides a secure platform for enthusiasts seeking the fastest payout slots in Malaysia. Download the app today for a seamless experience and start playing. visit: 1mcuci

  4. [2064]ac365 Official Login | বিকাশ ডিপোজিট ও অনলাইন স্লট গেম,ac365 এর অফিসিয়াল অ্যাপ ডাউনলোড করে লাইভ ক্যাসিনো গাইড দেখুন এবং দ্রুত বিকাশ ডিপোজিটের মাধ্যমে অনলাইন স্লট গেম উপভোগ করুন। আজই জয়েন করুন। visit: ac365

Leave a Reply

Your email address will not be published. Required fields are marked *