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

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


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


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