Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ssh

putty

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

like image 383
RaShe Avatar asked Aug 11 '11 11:08

RaShe


People also ask

Can I upload a file over SSH?

Upload file using SSHYou can also upload files to the remote server using SSH protocol using the SCP command. Use the following example command for uploading files to the SSH server. Similarity you can use -P switch to define port of the SSH server and -i to define private key for the user authentication.

How do I make PuTTY active from inactive?

If you go to your putty settings -> Connection and set the value of "Seconds between keepalives" to 30 seconds this should solve your problem.

How do I download and upload files using PuTTY?

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


2 Answers

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

like image 187
Johan Avatar answered Sep 24 '22 08:09

Johan


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

like image 45
anatoly techtonik Avatar answered Sep 25 '22 08:09

anatoly techtonik