1832608 Members
2181 Online
110043 Solutions
New Discussion

mput for sftp

 
SOLVED
Go to solution
Gavin Clarke
Trusted Contributor

mput for sftp

I'm trying really hard to be a good boy, stopping ftp services and using sftp and psftp (ssh) instead.

The problem I've got is that I've got 50 files to put from windows to this server and psftp has no mput.

I know there's -b option for batch processing, that still means doing a dir to a file and adding put to the begining of every line.

Is there a better way?

Thanks in advance for any hints and tips.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: mput for sftp

with ftp wildcarts work.

put *.tape

will work.

You might want to explore the scp command after exchange of public keys. I'm attaching a doc and it works nicely in batch with no password challenge.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Massimo Bianchi
Honored Contributor
Solution

Re: mput for sftp

alternatives:

- use nsftp, supports multiple put/get
- use scp


Massimo
Simone Benzi_1
Frequent Advisor

Re: mput for sftp

Ciao,

Yes, Steven is right, scp (ssh cp) works fine and can handle * wildcard. You can also avoid password typing with an appropiate private/public RSA key authentication.
The way to be a good boy is not so hard...:)

Simone
Gavin Clarke
Trusted Contributor

Re: mput for sftp

Thanks for the replies, have read the doc on keys will re-read.

scp, is this not UNIX to UNIX? Probably quite handy, not what I'm trying to do right now though.

Where do I get this nsftp from please?

Thanks again this is all very helpful to me.