Using MacOS as an SSH Destination

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

 

  • 0 Els usuaris han Trobat Això Útil
Ha estat útil la resposta?

Articles Relacionats

Backblaze/S3 - Excessive Storage Use by JB5

We have received some reports of excessive Storage use by JetBackup 5 in the S3 Bucket. For...

My S3 Vendor is not included in the supported list on JetBackup 5?

You can find a small list of S3 Vendors that are supported with the new S3 Compatible plugin at...

S3 Common Issues / Failed to upload file

S3 destinations can often hit request limits when destinations are configured with high...

S3 Compatible - "Error: The key 'XXXX' is not valid (InvalidAccessKeyId)"

Here are some helpful tips to troubleshoot the error "Error: The key 'XXXX' is not valid...

Unable to Validate Destination - SSH

JetBackup uses public-key authentication to connect to and validate your SSH Destination. This...