Skip to content

Commit

Permalink
[TF-470] Add StrictHostKeyChecking=no in sshfs options
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonShi1024 committed Jun 28, 2023
1 parent fa32280 commit 8aefaea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .ebextensions/01-nfs-mount.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ commands:
command: |
SFTP_PASSWORD=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k SFTP_PASSWORD)
echo "$SFTP_PASSWORD" > /tmp/credentials
sudo sshfs -o allow_other,password_stdin sftp-user@172.18.0.12:/ /mnt/nfs < /tmp/credentials
sudo sshfs -o allow_other,StrictHostKeyChecking=no,password_stdin sftp-user@172.18.0.12:/ /mnt/nfs < /tmp/credentials
rm /tmp/credentials

05_enable_sshfs_on_boot:
command: |
Expand Down

0 comments on commit 8aefaea

Please sign in to comment.