Can someone help me with commands? I'm trying to upload file to server based on linux.
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.
If you go to your putty settings -> Connection and set the value of "Seconds between keepalives" to 30 seconds this should solve your problem.
"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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With