How to upload files to server using Putty (ssh)

SshPutty

Ssh Problem Overview


Can someone help me with commands? I'm trying to upload file to server based on linux.

Ssh Solutions


Solution 1 - Ssh

You need an scp client. Putty is not one. You can use WinSCP or PSCP. Both are free software.

Solution 2 - Ssh

"C:\Program Files\PuTTY\pscp.exe" -scp file.py server.com:

file.py will be uploaded into your HOME dir on remote server.

or when the remote server has a different user, use "C:\Program Files\PuTTY\pscp.exe" -l username -scp file.py server.com:

After connecting to the server pscp will ask for a password.

Solution 3 - Ssh

Use WinSCP for file transfer over SSH, putty is only for SSH commands.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRaSheView Question on Stackoverflow
Solution 1 - SshJohanView Answer on Stackoverflow
Solution 2 - Sshanatoly techtonikView Answer on Stackoverflow
Solution 3 - SshMihai MaruseacView Answer on Stackoverflow