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

Use SSH commands in putty and/or psftp script for sftp server

I am working on a script to automate some file manipulation on an SFTP server which involves downloading files and then moving the originals to an archive folder on the SFTP server. The script needs to run every day. Currently, I have a batch file…
0
votes
1 answer

Why does this array of PSFTP commands not work on some Windows devices

I have the following snippet of code in a PowerShell script: $cmd = @( "lcd $local_directory", "mget $remote_files", "del $remote_files" ) $ErrorActionPreference = "SilentlyContinue" $cmd | & $psftp $sftpserver "-l"…
CamParker
  • 105
  • 2
  • 9
0
votes
0 answers

PSFTP - Batch script works when user runs it, but not in Task Scheduler

I'm working with a vendor who is updating a file via SFTP every 12 hours. I'd like to automate the download of the file every time it is updated. When I run a batch script manually it works just fine. When I put it in the task scheduler with highest…
alcor8
  • 327
  • 2
  • 13
0
votes
1 answer

Powershell Get-FTPItem -Path * ... is not working

I am working on a fairly small script that aims to download all files from a FTP folder. The script is a powershell script and uses the PSFTP module. So for test purposes I created 3 randoms files in the ftp folder called "a", "b" and "c". The…
Antoine Bonal
  • 39
  • 2
  • 7
0
votes
1 answer

How to use MPUT in PSFTP to put the file with permission 777

I don't want to use chmod 777 *.xml so how I can use MPUT to put the file with permission 777? Now when I do not use chmod 777 *.xml then default put file with permission 0664. This is my script dir lcd E:\Inbound cd /interface/incoming mput…
Hung Le
  • 141
  • 9
0
votes
1 answer

Get files from sftp using sshj and PuttyKeyFile

I am trying to fetch files from sftp server, but even I tryed many different approaches, it's still gives me an error userauth.UserAuthenticationExeption: "Exhausted availible authentication methods", and IllegalStateException: "Not…
0
votes
1 answer

PSFTP Unknown Command - PowerShelll Batch Task - Putty

I hope you and your family are doing well- I've been struggling with this error that I really don't understand. This is the PowerShell script that I created to upload files to a ftp server using PSFTP …
Jhosef
  • 37
  • 1
  • 5
0
votes
0 answers

How to transfer a folder from a git repo to a server through psftp in putty?

I have some of my work available on a git repo which contains 2 folders. Now I want to transfer these 2 folders to a remote server using psftp in putty. I have tried downloading the folders from git and then pusing them to server by first connecting…
rehan
  • 143
  • 3
  • 17
0
votes
0 answers

Powershell: Using send-mailmessage after PSFTP in script

I have written a small script that are using PSFTP to connect to a FTP server, download some files and conclude by sending an email with a summary of downloaded files. I get a problem with the send-mailmessage part, which fails with this error:…
Jan_sh
  • 1
0
votes
0 answers

While listing files from ftp server it goes on looping on ././././ directory

While trying to delete files from ftp server using above script it loops on finding ./././././ directories which don't exist. Is there any error on the script or it's a bug in psftpd? Can anyone help me with the issue? Here is the looping lines…
Mr.Fix
  • 1
  • 1
0
votes
0 answers

PSFTP - File Transfer Not Happening

I want a file to transfer automatically for one server to another server. For that i have installed putty. Batch File: Transfer.Bat cd "C:\Program Files\PuTTY" psftp Username@RemoteServer.com -pw password -b MovementFileTransferScript.txt -be Text…
RobinHood
  • 2,367
  • 11
  • 46
  • 73
0
votes
1 answer

Ignore Error Code 2 PSFTP

We have an desktop application that dynamically generates a command file to pull specific files that have the current date in the name. So in the end we have a command file that looks like this: lcd e:\localpath mget Filename0111.dat mget…
user2073183
  • 141
  • 1
  • 3
  • 13
0
votes
1 answer

Error in execute process task while uploading a file to sftp server using PSFTP.exe

I created a execute process task in SSIS to upload a file to a sftp server. I have full access to the server folder and was able to drag and drop files using filezilla. I am using putty sftp client psftp.exe to do the upload. Now when I use the…
Naphstor
  • 2,356
  • 7
  • 35
  • 53
0
votes
1 answer

I can see the file on the server however I cannot use "get" comand on it (putty/psftp)

I am new to using these sftp programs to get files from a server so understand that I might be very ignorant to a lot of things. With that being said: I am using windows command line to run psftp.exe like so: psftp.exe hostname@server -i…
Darryl Lobo
  • 155
  • 3
  • 18
0
votes
1 answer

Batch Job continues running in Control-M even though the task is completed

Hi I am have created a batch job in windows server. The task of the batch job is to ftp a file using PSFTP. When I am running the .bat file directly its working fine after the script is run the windows closes. but when I am running through our…
Hasibur
  • 3
  • 1
  • 4