This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ssh public key authentication problem using curl


On 11/4/2011 2:33 PM, Andrey Repin wrote:

You didn't supplied a username to the remote host at all.
Quite predictable, you got a name mismatch...

Thanks. That was the clue. The following all work, connecting to my cygwin home directory on the server:


ssh dell03
sftp dell03
lftp sftp://dell03

but curl requires a more explicit syntax: curl sftp://cdr@dell03

I had tried curl -u cdr, but that asks for a password. Since I want to use curl in a script, I did not want to have to enter a password.
I did not think of trying a different syntax until reading your suggestion.






--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]