sftp in batch mode without psssword prompt




I would like to use (SSH) ftp from a solaris 2.9 box to another solaris
2.9. Requirments are that password authentication needs to be used (I
know public/private key is more secure, but customer is king).

I've been looking through the archives and seen different hacks to get
around the password prompting but I've not found the final answer. I've
paged through "SSH, the definitive guide" and beside mentions a couple
of hundred times that password is less secure it doesn't mention
solutions.

On my Windows PC I can uses something as "sftp user@host -pw password"
and that works. But the -pw option is not in Solaris 2.9 (and no I
can't install a new version of SSH).

The most common "hacks" I've found are:
- using expect to supply the password
- using SSH_ASKPASS

Is there a more regular way of using password authentication with sftp.
When I run sftp with -v I can see that I can I use password
authentication, keyboard innteractive and the usual.

Regards,
Ogmios

.



Relevant Pages

  • Re: password aging with sftp
    ... > This version recognizes password aging when the aging is implemented in ... not ssh keys) they will get prompted ... Is there a way to get sftp to issue the same prompt to change the ... As it stands, with password authentication, no. ...
    (SSH)
  • sftp failing w/ "File transfer server could not be started it exited unexpectedly. Exit value 0
    ... I've installed a non-commercial version of ssh for my ... Solaris 8 machine. ... Using a windows 32-bit client I am able to access the ... When I try to invoke sftp from the ...
    (SunManagers)
  • PATH MTU and ssh
    ... I have some problems using ssh and sftp for large files> 50MB. ... Solaris and Linux machines with the same result. ... How do I control PMTU on Solaris 8 and 9? ...
    (comp.unix.solaris)
  • server securing issues
    ... have done some securing on my solaris server and ... Information about the remote host: ... Port ssh ... An SSH server is running on this port. ...
    (SunManagers)
  • Re: Creating dynamic tunnels using bash script (cygwin/solaris)
    ... I would do something like this (cygwin is my windows box having cygwin ... installed and solaris is a solaris based server): ... My problem is that the destination port is unknown at the time I create ... the ssh call. ...
    (comp.security.ssh)