How to setup SFTP key authentication when using the Control-M Managed File Transfer built-in SFTP service? |
After you generate the SSH keys you should: 1. In the connection profile: Select the private key (file with no extension) from Private Key name drop down. Specify the passphrase (the one you have use while generating the keys). 2. Open public key (.pub extension) with some editor or use cut command in Unix and copy the content of this file. 3. On the agent machine where the SFTP server is located (the machine the connection profile is configured to connect to), open authorized_keys file, located under <agent_home>/cm/AFT/data/ folder, for edit and add to its content the ssh public key copied before. 4. Before the key put the <user_name> followed by space. The user name that was used in connection profile of FTS. 5. Test the connection profile and click on Get home directory. 6. Save the profile. The following video demonstrates this solution: |