Can't upload file to server

Advertisement

Suliman
Guest

Can't upload file to server

I am trying to upload auth on server and upload file with next command:

winscp.com /command "open devuser@172.17.18.127" /privatekey=C:\Users\dev\.ssh\my_private_key.ppk "put latest.tar.gz /home/devuser/folder" "exit"

It's connecting to server, but saying that "latest.tar.gz host do not exits". Why? It's not host-name, but name for file for uploading.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Can't upload file to server

It should be:
winscp.com /command "open devuser@172.17.18.127 -privatekey=C:\Users\dev\.ssh\my_private_key.ppk" "put latest.tar.gz /home/devuser/folder" "exit"

Reply with quote

Advertisement

You can post new topics in this forum