curl-users
RE: curl: (79) scp: /test.txt: No such file or directory
Date: Tue, 29 Jun 2010 11:49:52 -0400
I am sure that the file exists (please refer to the logs below - if you SFTP works but SCP fails for the same file).
Following log shows the usage of SCP
$ curl -v -u sharmam:qwer5678 -T testt.txt scp://dicmdb01/~/
* About to connect() to dicmdb01 port 22 (#0)
* Trying 10.6.244.76... connected
* Connected to dicmdb01 (10.6.244.76) port 22 (#0)
* Failed to read known hosts from /appsQED1/edi/.ssh/known_hosts
* SSH host check: 0, key: AAAAB3NzaC1yc2EAAAABIwAAAQEAu05crPss/N2AIVeIgFRNfsCzOe8t+hMFL8Uy5crUnwHeHrIjPl+QZZiRLcRJRhq4xHDb1xvBXDoJXcQNx2yHsaaJhRcs9Tmat48IT94w3bL0kIqYhkGl1p41OkeOyJtnS5k5c0HfrztrOd6zqSvpHLuN2FHU8xtIy3AQAr5x5u1GdOfCyYifDeEpNTL2Gu+JzV2PDv2PebPXrdWjpTX8yQWu5pyMLMGWb6ZKAqkOnosMIbPdAcGEU3XuFJ0vVqQGPcUbOfqL63TO3qCBmVh9cWdLKZ5egq3eDJLfk0gVDkwHdBPbF1adu7RZnPgF/ARBNQIrMi0AWyMIUxvg9SC71w==
* SSH authentication methods available: publickey,password,keyboard-interactive
* Using ssh public key file /appsQED1/edi/.ssh/id_dsa.pub
* Using ssh private key file /appsQED1/edi/.ssh/id_dsa
* SSH public key authentication failed: Unable to open public key file
* Initialized password authentication
* Authentication complete
* SSH CONNECT phase done
* scp: ~/testt.txt: No such file or directory
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connection #0 to host dicmdb01 left intact
curl: (79) scp: ~/testt.txt: No such file or directory
* Closing connection #0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Following log shows the usage of SFTP:
$ curl -v -u sharmam:qwer5678 -T testt.txt sftp://dicmdb01/~/
* About to connect() to dicmdb01 port 22 (#0)
* Trying 10.6.244.76... connected
* Connected to dicmdb01 (10.6.244.76) port 22 (#0)
* Failed to read known hosts from /appsQED1/edi/.ssh/known_hosts
* SSH host check: 0, key: AAAAB3NzaC1yc2EAAAABIwAAAQEAu05crPss/N2AIVeIgFRNfsCzOe8t+hMFL8Uy5crUnwHeHrIjPl+QZZiRLcRJRhq4xHDb1xvBXDoJXcQNx2yHsaaJhRcs9Tmat48IT94w3bL0kIqYhkGl1p41OkeOyJtnS5k5c0HfrztrOd6zqSvpHLuN2FHU8xtIy3AQAr5x5u1GdOfCyYifDeEpNTL2Gu+JzV2PDv2PebPXrdWjpTX8yQWu5pyMLMGWb6ZKAqkOnosMIbPdAcGEU3XuFJ0vVqQGPcUbOfqL63TO3qCBmVh9cWdLKZ5egq3eDJLfk0gVDkwHdBPbF1adu7RZnPgF/ARBNQIrMi0AWyMIUxvg9SC71w==
* SSH authentication methods available: publickey,password,keyboard-interactive
* Using ssh public key file /appsQED1/edi/.ssh/id_dsa.pub
* Using ssh private key file /appsQED1/edi/.ssh/id_dsa
* SSH public key authentication failed: Unable to open public key file
* Initialized password authentication
* Authentication complete
} [data not shown]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 21 0 0 0 21 0 36 --:--:-- --:--:-- --:--:-- 36* Connection #0 to host dicmdb01 left intact
* Closing connection #0
$
Thanks,
Megh
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-06-29