Deploy Oracle Autonomous Linux VM

Since I’m aligned to the Oracle Cloud VMware Solution, this post will be aligned to Oracle Cloud Infrastructure and deploying a Linux VM so that we can run an SFTP Server.

If you are not familiar with deploying an OCI Compute Instance, you can (Click here or reach out to me if you need additional help.

Once you SSH into the Linux VM you deployed, you can follow the below steps to get SFTP running. The information outlined in Configure NSX-T Manager Backup correlates directly with the information in this post.

# Elevate Permission Level
sudo su
# Add user
adduser --shell /bin/false sftpuser
# Set password
passwd sftpuser
# Create Directory for SFTP
mkdir -p /var/sftp/files 
chown sftpuser:sftpuser /var/sftp/files 
chown root:root /var/sftp 
chmod 755 /var/sftp 
# Configure sshd for SFTP Only
vi /etc/ssh/sshd_config

Copy this at the end of the file in vi.

  Match User sftpuser
  ForceCommand internal-sftp
  PasswordAuthentication yes
  ChrootDirectory /var/sftp
  PermitTunnel no
  AllowAgentForwarding no
  AllowTcpForwarding no
  X11Forwarding no
# Restart SSH Service
systemctl restart sshd.service

You can now go back to Configure NSX-T Manager Backup and continue your NSX-T backup configuration.