[ssh] How to upload files to server using Putty (ssh)

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

This question is related to ssh putty

The answer is


"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.


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