{"id":1739,"date":"2015-12-21T16:36:56","date_gmt":"2015-12-21T16:36:56","guid":{"rendered":"https:\/\/studentclearinghouse.info\/help\/?post_type=ht_kb&#038;p=1739"},"modified":"2026-03-17T14:28:04","modified_gmt":"2026-03-17T14:28:04","slug":"configuring-automated-scripts","status":"publish","type":"ht_kb","link":"https:\/\/help.studentclearinghouse.org\/dataexchange\/knowledge-base\/configuring-automated-scripts\/","title":{"rendered":"Configuring Automated Scripts"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">For automated environments, no cost\/low cost secure\u00a0FTP\u00a0clients are available that can exchange files via encrypted FTP over\u00a0SSH\u00a0(SFTP).<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-open-sans-font-family\" style=\"font-style:normal;font-weight:600\">\u00a0FTP over SSH (SFTP)<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SFTP clients are typically found on UNIX\/Linux systems and IBM OS\/390 mainframes<\/li>\n\n\n\n<li>The Clearinghouse secure FTP system works with a variety of third-party clients\n<ul class=\"wp-block-list\">\n<li>Tested with OpenSSH, F-Secure, and SSH Communications SFTP clients on UNIX<\/li>\n\n\n\n<li>Tested with F-Secure, PSFTP, and WinSCP SFTP clients on Windows<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">SSH clients use TCP Port-22 to establish the connection with the server. Make sure that your firewall is configured to allow outbound traffic on Port-22 to <a href=\"https:\/\/ftps.nslc.org\">ftps.nslc.org<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"mailto:secureftp@studentclearinghouse.org\">Contact the Clearinghouse<\/a> to obtain a username and password for the secure FTP system. Although SSH uses a public key signature in lieu of a password, you can still use your password to access our secure FTP system interactively via a Web browser or a command line program.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following example uses the <strong>SSH Tectia Client<\/strong> obtained from <a href=\"http:\/\/www.ssh.com\" target=\"_blank\" rel=\"noopener\">www.ssh.com<\/a>. The Tectia Client has a file transfer program named SFTP2, based on the SSH2 standard. The following steps are typical of those running on a Unix platform:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Enter the command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sftp2 <em>userid<\/em>@ftps.nslc.org<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If this is the first time your host establishes a connection with ftps.nslc.org, it will prompt you to create a host key file for ftps.nslc.org. Create the key file. If you would like to confirm the key&#8217;s signature, please <a href=\"mailto:secureftp@studentclearinghouse.org\">contact the Clearinghouse<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. If you do not already have a public\/private keypair for SSH, create one using the command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh-keygen2<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">3. Provide the Clearinghouse with your\u00a0public key fingerprint. The Clearinghouse will add that to your user account on our secure FTP system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. Create a batch file of FTP commands such as the following (batch.file):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">open <em>userid<\/em>@ftps.nslc.org\nput <em>test.file<\/em>\nclose<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Note: You can send a test file, but please indicate in the contents and the name that it is a test file.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. You can run the batch file with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sftp2 -B batch.file<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">6. For automated transfers, you can schedule this command to run at a particular time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to configure automated scripts for secure and reliable Secure FTP file transfers.<\/p>\n","protected":false},"author":3,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"ht-kb-category":[73],"ht-kb-tag":[],"class_list":["post-1739","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-secure-ftp"],"_links":{"self":[{"href":"https:\/\/help.studentclearinghouse.org\/dataexchange\/wp-json\/wp\/v2\/ht-kb\/1739","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.studentclearinghouse.org\/dataexchange\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/help.studentclearinghouse.org\/dataexchange\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/help.studentclearinghouse.org\/dataexchange\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/help.studentclearinghouse.org\/dataexchange\/wp-json\/wp\/v2\/comments?post=1739"}],"version-history":[{"count":2,"href":"https:\/\/help.studentclearinghouse.org\/dataexchange\/wp-json\/wp\/v2\/ht-kb\/1739\/revisions"}],"predecessor-version":[{"id":2928,"href":"https:\/\/help.studentclearinghouse.org\/dataexchange\/wp-json\/wp\/v2\/ht-kb\/1739\/revisions\/2928"}],"wp:attachment":[{"href":"https:\/\/help.studentclearinghouse.org\/dataexchange\/wp-json\/wp\/v2\/media?parent=1739"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/help.studentclearinghouse.org\/dataexchange\/wp-json\/wp\/v2\/ht-kb-category?post=1739"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/help.studentclearinghouse.org\/dataexchange\/wp-json\/wp\/v2\/ht-kb-tag?post=1739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}