Solved

Using PSFTP.exe from Cygwin

Posted on 2011-02-22
1
611 Views
Last Modified: 2013-11-15
Greetings,
I would like to use a .sh in Cygwin to call the putty.exe distribution of psftp.exe application.  I need to use the command line option and would like guidance on the how to create a bash with the below args:
psftp.exe [user@host -batch] -pw [pass] -b [text file]
0
Comment
Question by:gNome
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
klodefactor earned 500 total points
ID: 36490265
First, two points:
- Because you're using Cygwin, it would be best to use sftp from the openssh package.
- If at all possible, don't put passwords in scripts.  It's better to configure non-interactive ssh authentication, for example by adding the client system's public ID to the authorized_keys file on the server.  A pretty good intro is at http://kimmo.suominen.com/docs/ssh/
Assuing you're using sftp and non-interactive authentication:
#!/bin/bash
sftp user@host:[path] -b [text file]

Open in new window

--klodefactor
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
In this article I discuss my selections of the Top Four free Outlook OST File Viewers available. Open, view and read even damaged OST files by using these tools. They all provide a clear preview of all data such as emails, notes, tasks, calendars, e…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question