Questions tagged [pscp]

PuTTY Secure Copy client (pscp) is a command-line SCP client for transferring files securely between computers using an SSH connection.

PSCP documentation: https://the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter5.html

120 questions
0
votes
1 answer

Unable to copy files from pscp to ubuntu - persmission denied

I am a newbie in Linux administration. I deleted my Django project directory from the remote Ubuntu server. The project was located here: /usr/local/lib/python2.7/dist-packages/django/my_proj So I removed my_proj doing rm -rf my_proj, and then I…
Crazy Frog
  • 495
  • 8
  • 17
0
votes
0 answers

PSCP how to upload Folder in a server having password

pl help me to upload the entire folder using PSCP via command line. i am able to download entire folder from server,but unable to upload server has username and password this is the below code which i am using pscp -r D:\TEST\…
Prayag
  • 211
  • 1
  • 13
0
votes
2 answers

Using echo y as an automated response to a pcp hostkey prompt

I am building a batch file so that I can push firmware to 600 plus devices. If I am at a command prompt I can run the following command on a single line that will push the firmware and answer yes to the SSH key prompt. echo y | pscp -v -scp -pw…
Brian Cook
  • 37
  • 2
  • 2
  • 10
0
votes
2 answers

permission denied when renaming file in linux at /var/www/html

I am very new to linux and am using putty and pscp to move files to a live hosted directory. I would like to rename my recently uploaded dist folder to its actual project name using mv but get a permission denied error. What is the safest and most…
lawtonb
  • 5
  • 1
  • 3
0
votes
1 answer

PSCP automatic upload newest file

I am trying to make a bat script that uploades the newest file from a folder to the public html. How to do this? I got this to work at the moment. c:pscp -pw password c:\index.html user@host:public_html/index.html
Coolcrab
  • 2,655
  • 9
  • 39
  • 59
0
votes
1 answer

Cannot copy to server using PSCP

I have downloaded PSCP from: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html and added it to the PATH in windows 7. I now try to copy a file to a tomcat using the following : pscp -P 8081 bob.txt…
u123
  • 15,603
  • 58
  • 186
  • 303
0
votes
1 answer

Powershell returns Local copy not supported while using variables in pscp

I am struggling for a while with using variable with pscp command. ForEach ($Server in $Servers) { .\pscp.exe -pw $password create_ssh $myUsername@$Server:/home/$myUsername/create_ssh .\plink.exe -pw $password $myUsername@$Server -C "uname…
P.Mlejnek
  • 1
  • 2
0
votes
1 answer

Can't copy from remote to local

I am trying to copy from remote ubuntu machine to local windows: pscp name@example.com:/home/www/file c:\xampp\htdocs Instead of getting a copy on local i get c:xampphtdocs file created on a remote. I was refering to this…
Kamran
  • 71
  • 1
  • 1
  • 7
0
votes
1 answer

putty, grab revision, save as text, close from a batch file solution

I'm not a programmer and need lots of help. I have pieces working, but want the complete solution. I have countless Ubuntu boxes in a closet on the other end of the building. From my desktop, I can putty into each machine. run the command , Cat…
user3314404
  • 79
  • 1
  • 2
  • 10
0
votes
1 answer

How to write a batch file for running commands in a remote Unix server

I'm trying to copy a file from Linux based server to my Windows PC. The file I want to copy is not readily available ie I got to run the following command in putty tail -n 100000 conveyor2.log | grep -P 'curingresult OK' | sed 's/FT\ /FT/g' |awk…
San_man
  • 120
  • 1
  • 8
0
votes
2 answers

Transfer File to Unix Server from Windows Shared Path using PuTTY

I need to copy a file from a windows share directory to AIX box. I am not able to get into windows share directory when i have connected to AIX box. Can someone please help as which unix commands to use to use to login into windows share directory…
Kaushal
  • 61
  • 1
  • 1
  • 8
0
votes
1 answer

Using pscp.exe, how can I find files and then transfer from Unix to my windows system?

I can transfer files from Unix system to my windows system using pscp.exe as below: (I am doing this in VBScript). Function vbsMsgBox () set sh = CreateObject("WScript.Shell") sh.Run "C:\Users\msiddiq1\New\PSCP.EXE -pw password…
Ejaz
  • 1,504
  • 3
  • 25
  • 51
0
votes
1 answer

copy pscp a file from window server to to remote linux server

I want to copy a directory (pscp) from windows server to Linux server The target place name on Linux server has to be new each time.When i run the below command, > pscp -p -l root > -pw mypassword -r…
sudistack
  • 109
  • 1
  • 4
0
votes
1 answer

pscp exclude a directory

pscp -r ../mydir/ xxx@example.com:/var/www/html/xxx/ copies everything under mydir, is there a way to exclude one subdirectory under mydir?
user121196
  • 30,032
  • 57
  • 148
  • 198
0
votes
1 answer

pscp file transfer error output redirected to file

I would like to transfer one file via pscp using wscript and this code just don't work. It doesn't throw any error, but it won't transfer file or make output either. Dim objShell Set objShell = WScript.CreateObject("WScript.Shell") objShell.Exec…