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.

236529 次浏览

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

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

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