{"id":19355,"date":"2016-08-18T10:33:01","date_gmt":"2016-08-18T14:33:01","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/?p=19355"},"modified":"2019-02-14T17:33:45","modified_gmt":"2019-02-15T01:33:45","slug":"copy-files-over-ssh-during-continuous-integration-and-deployment","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/copy-files-over-ssh-during-continuous-integration-and-deployment\/","title":{"rendered":"Copy Files Over SSH during Continuous Integration and Deployment"},"content":{"rendered":"<p>In July we released a\u00a0<a href=\"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2016\/07\/30\/ssh-build-task\/\">SSH task<\/a> to run commands or scripts on a remote machine to make it easier to configure Linux servers as part of your automated build or release definitions. Now we are including another task that will make it easier to deploy to Linux servers.<\/p>\n<p>The Copy Files Over SSH task allows securely copying files to a remote server. The task supports the SFTP protocol and SCP protocol (via SFTP).\u00a0This task is available as a built-in task on all accounts in Visual Studio Team Services. It will also ship with the next version of Team Foundation Server (TFS)\u00a0for customers with on-premises installations.<\/p>\n<p>This task can be used to copy results of a continuous integration Java build to an integration environment for testing.\u00a0 It could also be used to deploy build artifacts, such as a .WAR file, to a pre-production environment.\u00a0 In many situations, copying files over SSH is a better option than FTP\/S because all communication and user credentials are encrypted without requiring acquisition and configuration of an SSL certificate. \u00a0SSH support is ubiquitous on Linux and Mac OS and <a href=\"https:\/\/blogs.msdn.microsoft.com\/powershell\/2015\/10\/19\/openssh-for-windows-update\/\">coming soon<\/a> to Windows.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/6\/2019\/05\/copyFilesOverSSHTask.png\"><img decoding=\"async\" width=\"1879\" height=\"606\" class=\"alignnone size-full wp-image-19365\" alt=\"copyFilesOverSSHTask\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2016\/08\/copyFilesOverSSHTask.png\" \/><\/a><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/6\/2019\/05\/copyFilesOverSSHTask.png\"><\/a><\/p>\n<p>Checkout the <a href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkId=821894\">documentation<\/a> and the <a href=\"https:\/\/youtu.be\/9R027dWJjqo\">demo video<\/a>!<\/p>\n<p><iframe title=\"Copy Files over SSH\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/9R027dWJjqo?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>This task is open source on <a href=\"https:\/\/github.com\/Microsoft\/vsts-tasks\/tree\/master\/Tasks\/CopyFilesOverSSH\">GitHub<\/a>. Try it out and let us know if you have any feedback through the Issues section of\u00a0our\u00a0<a href=\"https:\/\/github.com\/Microsoft\/vsts-tasks\">our GitHub repository<\/a>.<\/p>\n<p>To learn more about setting up a Tomcat server to use with this task, please see the instructions for <a href=\"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2016\/08\/18\/deploying-an-azure-ubuntu-linux-vm-running-apache-tomcat-for-use-with-visual-studio-team-services-and-team-foundation-server\/\">Ubuntu <\/a>and <a href=\"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2016\/08\/18\/deploying-an-azure-red-hat-linux-vm-running-apache-tomcat-for-use-with-visual-studio-team-services-and-team-foundation-server\/\">Red Hat<\/a>.<\/p>\n<p>To learn more about cross platform development with Team Services, visit\u00a0<a href=\"https:\/\/visualstudio.microsoft.com\">https:\/\/visualstudio.microsoft.com<\/a><\/p>\n<p>Cheers!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In July we released a\u00a0SSH task to run commands or scripts on a remote machine to make it easier to configure Linux servers as part of your automated build or release definitions. Now we are including another task that will make it easier to deploy to Linux servers. The Copy Files Over SSH task allows [&hellip;]<\/p>\n","protected":false},"author":199,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-19355","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"acf":[],"blog_post_summary":"<p>In July we released a\u00a0SSH task to run commands or scripts on a remote machine to make it easier to configure Linux servers as part of your automated build or release definitions. Now we are including another task that will make it easier to deploy to Linux servers. The Copy Files Over SSH task allows [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/19355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/199"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=19355"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/19355\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=19355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=19355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=19355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}