If you have Mac OS configured as your SSH destination, you may encounter the following error.
Error: ls: illegal option -- - usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...]
This error indicates there is an issue with the ls
command. JetBackup 5 requires the following command to list the destination directory during the reindex process:
ls -al --time-style=+%s /DESTINATION/PATH
The binaries available need to return the identical output to what would be returned by standard Linux. To resolve this issue, kindly follow the guide below.
1. Install coreutils
brew install coreutils
2. Create a file ~/.ssh/environment
on the server containing the following:
PATH=/usr/local/opt/coreutils/libexec/gnubin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
3. Change the SSH server config file /private/etc/ssh/sshd_config
to include the following line
PermitUserEnvironment PATH,LANG