SFTP Destination
Configuring your SFTP destination
Prerequisites
By default, SFTP uses keypair authentication for access. You will need a provided public key to configure your destination. It will look roughly like this:
ssh-key <ssh_public_key_beginning_with_AAAA> some-commentStep 1: Create a user on the SFTP server
Login to the SFTP server and complete the steps below.
Create group sftpwriter:
sudo groupadd sftpwriterCreate user sftpwriter:
sudo useradd -m -g sftpwriter sftpwriterSwitch to the sftpwriter user:
sudo su - sftpwriterCreate the .ssh directory:
mkdir ~/.sshSet permissions:
chmod 700 ~/.sshNavigate to the .ssh directory:
cd ~/.sshCreate the authorized_keys file:
touch authorized_keysSet permissions:
chmod 600 authorized_keysAdd the public key to the authorized_keys file. The key -- including the "ssh-key" and comment -- should be all on one line in the file, without linebreaks.
echo "ssh-key \<ssh_public_key_beginning_with_AAAA> sftpwriter-public-key" > authorized_keysStep 2: Add your destination
Share your host name, folder name, username, port, and public key with us to complete the connection.
Updated about 6 hours ago
