Skip to main content This browser is no longer supported. Show
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Copy Files Over SSH task
In this articleAzure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019 | TFS 2018 Use this task to copy files from a source folder to a target folder on a remote machine over SSH. This task allows you to connect to a remote machine using SSH and copy files matching a set of minimatch patterns from specified source folder to target folder on the remote machine. Supported protocols for file transfer are SFTP and SCP via SFTP. In addition to Linux, macOS is partially supported (see FAQ). Note In Microsoft Team Foundation Server (TFS) 2018 and previous versions, build and release pipelines are called definitions, runs are called builds, service connections are called service endpoints, stages are called environments, and jobs are called phases. Prerequisites
YAML snippet
Arguments
Supported algorithmsKey pair algorithms
Encryption algorithms
For OpenSSL v1.0.1 and higher (on agent):
For OpenSSL v1.0.1 and higher, NodeJS v0.11.12 and higher (on agent):
See also
Open sourceThis task is open source on GitHub. Feedback and contributions are welcome. FAQWhat key formats are supported for the SSH tasks?The Azure Pipelines SSH tasks use the Node.js If you run into an "Unsupported key format" error, then you may need to add the Do I need an agent?You need at least one agent to run your build or release. I'm having problems. How can I troubleshoot them?See Troubleshoot Build and Release. I can't select a default agent pool and I can't queue my build or release. How do I fix this?See Agent pools. My NuGet push task is failing with the following error: "Error: unable to get local issuer certificate". How can I fix this?This can be fixed by adding a trusted root certificate. You can
either add the Is this task supported for target machines running operating systems other than Linux?This task is intended for target machines running Linux.
FeedbackSubmit and view feedback for How do I download a file from server to local machine SSH?To transfer a file from a remote server via SSH using SCP, we need the following pieces of information:. Login credentials – username, server name or IP address, and password.. The port number for SSH connections.. The path to the file on the remote server.. The path to the download location.. How do I transfer files from server to local?scp command is being used to copy files from a remote server to a local machine and vice versa. It uses ssh to do secure file transfer.
Can you use SSH to copy files?It's based on the SSH protocol used with it. A client can use an SCP to upload files to a remote server safely, download files, or even transfer files via SSH across remote servers.
How copy file from server to local in PuTTY?2 Answers. Download PSCP.EXE from Putty download page.. Open command prompt and type set PATH=<path to the pscp.exe file>. In command prompt point to the location of the pscp.exe using cd command.. Type pscp.. use the following command to copy file form remote server to the local system pscp [options] [user@]host:source target.. |