Questions tagged [psftp]

Use this tag for questions about PSFTP, a PuTTY tool used to transfer files between computers over SSH.

59 questions
1
vote
0 answers

Using psftp through pywinrm

I have following commands that I can execute in powershell directly and works fine. psftp my-user@linux-host get /tmp/oldname C:\newname Now, I want to execute them through a linux host using pywinrm like below: s = winrm.Session('windows-host:',…
Maven
  • 14,587
  • 42
  • 113
  • 174
1
vote
1 answer

Can I pass the content of the batch file directly as argument instead of saving it in a batch file and passing the file itself?

Can I pass the content of the batch file directly as argument instead of saving it in a batch file and passing the file itself? My question is the following, instead of using this: psftp.exe user_name@host_domain -pw user_pw -b…
KTFLash
  • 63
  • 1
  • 5
1
vote
1 answer

Moving files on FTP with PowerShell using Rename-FTPItem fails with "(550) File unavailable"

I need to move files on a remote FTP server from Test to Tested. The files are always .csv, but the name changes as it's timestamped. Using the PSFTP module, I have written the following $FtpServer = "ftp://myftpserver.com/" $User =…
SQ-what
  • 49
  • 5
1
vote
1 answer

Receiving Invalid Signature - SFTP

Our file transfer automation software is connecting to an external SFTP server to download files. It's connecting using Putty's command line tool PSFTP. When it kicks off at it's scheduled time, an error results. The error is: Remote working…
user2073183
  • 141
  • 1
  • 3
  • 13
1
vote
1 answer

How do I exclude a subdirectory during get with psftp?

I am using the PuTTY psftp get command to download files recursively from a remote Unix server to my local PC and I need to exclude the vendor subdirectory. The vendor folder lives under /var/www/html/project/ together with other files and folders.
rufusy
  • 107
  • 1
  • 10
1
vote
1 answer

PuTTY psftp get file from partial name

One of our suppliers has started sending reports where the filename is suffixed with the date of the export and I can't work out using PuTTY psftp how to always pick up the file regardless of the change in file name. This works for the exact…
1
vote
3 answers

Timestamp and Increased levels of verbose logging using PSFTP

I am needing to add verbose logging to an FTP to another system as they claim they are not always receiving a file sent. I am calling psftp.exe using a script and trying the -v option for verbose logging which works, I also want to add a timestamp…
Jacob Lynn
  • 31
  • 1
  • 9
1
vote
1 answer

Determining if SFTP connection with PSFTP was successful or failed

I'm trying to write a PowerShell Script to connect to a server that is outside my domain. Inside the script, I'm passing a PSFTP (PuTTY) Connection string to connect to the server. I'd like to know how to determine if the connection was successful…
Scoine
  • 11
  • 2
1
vote
1 answer

Use PuTTY to upload files inside a batch file

In my batch file I have the following code: cd /D "C:\Putty.0.63" psftp -b D:\batch\psftp.txt user@ftp.server.com -pw myPassword pause psftp.exe is in the C:\Putty.0.63 location. In psftp.txt I have open ftp.server.com I can log in to the ftp…
ramsey_lewis
  • 558
  • 8
  • 25
1
vote
1 answer

psftp put is throwing error : open for write: failure when filename is not provided in destination location

I am using psftp's put command to upload files. I am not providing the filename in destination location assuming that the file will be copied with the same name. Here's the help page of put command psftp> help put put [ -r ] [ -- ] […
user3086551
  • 405
  • 1
  • 4
  • 13
1
vote
1 answer

PSFTP How to get file name from Dir command using RegExp

I'm trying to use a regular expression to parse a log file generated from a dir command from PSFTP. Example Dir example 1 drwxr-xr-x 1 0 0 0 Jun 21 13:13 . drwxr-xr-x 1 0 0 0 Jun 21 13:13 .. -rw-r--r--…
Bonobo
  • 26
  • 6
1
vote
1 answer

PSFTP rename file after transfer completed

I am transferring files through PSFTP to 3rd party server using Batch files. While transferring files, due to buffering issues, files are being broken/not transferred fully. As a remedy, 3rd party requested us to name each file with '.new' before…
saikiran
  • 71
  • 2
  • 8
1
vote
1 answer

Check for psftp file upload error in batch file

I am trying to upload a file from Windows server to third party server (I do not know OS etc. of this) through windows batch script. I am using PSFTP to upload files. It was working since a long time but since yesterday while uploading files, I am…
saikiran
  • 71
  • 2
  • 8
1
vote
1 answer

Calling PSFTP from a Powershell script: How to silence the output?

I have written a Powershell script that uses psftp.exe to back up config files from a number of switches. The guts of the psftp loop, adapted from here, are as follows: # set up array of psftp commands to run on each switch $cmd = @("get…
Steve Eklund
  • 401
  • 1
  • 4
  • 9
1
vote
1 answer

PuTTY PSFTP command line works as Admin, fails as User

I have an interesting dilemma with PuTTY PSFTP. Set up... Pageant .60 putty .60 Used command: D:\psftp.exe -load myserver.domain.us.com -l User1 -b MyCommand Script This loads PuTTY PSFTP, logs in using the user ID with the help of Pageant and…