Reg sftp/scp upload : case sensitive behaviour using domain-name in URL : password based authentication
Date: Tue, 2 Jun 2020 19:41:43 +0530
Hi ,
I am seeing case sensitive upload behaviour for sftp/scp with domain name
in the URL. I am trying password based authentication.
1)added remote host ssh key in the known_host file. ssh-keyscan utility
used. "ssh-keyscan FADL090.in.test.com >> /root/.ssh/known_hosts"
2)upload : curl -T test.txt sftp://fadl090.in.test.com/home/test/ --user
"test:test_at_123 --> Successful
3)upload : curl -T test.txt sftp://FADL090.in.test.com/home/test/ --user
"test:test_at_123 --> Failed
1)
~ # *ssh-keyscan FADL090.in.test.com <http://FADL090.in.test.com> >>
/root/.ssh/known_hosts*
# FADL090.in.test.com:22 SSH-2.0-OpenSSH_7.4
# FADL090.in.test.com:22 SSH-2.0-OpenSSH_7.4
# FADL090.in.test.com:22 SSH-2.0-OpenSSH_7.4
~ #
~ # cat /root/.ssh/known_hosts *--> added entry in lower-case*
*fadl090.in.test.com <http://fadl090.in.test.com>* ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQCVx/BwZdWU4Y8ssRtyxFs7JMna+aZSDgvtVcQCVU38cxLeTiz/4+/8F6mrCSF6yW2sHrqWzZVtk3RWGDeGg+K+16EBUmeo1Za1CMnAyrK+Cs+qXrZMnPTSPzOdVdVr1aF8bFcZiMA3vSB4GMyCuP5nPCfZxfSlc/1mSW1il9SOSJEneF6oVSnaG1pCvM7rouzsNMDgV9Gk5/TX2fyG9ZI1b3WSQm0fHumQqH1Pz9oKnNnllyOFx3JpapBsEcqChrYIH5RNezEESY8u3g/zgBsjjQzO9NaVk/cs1qAKE8MkJAqH+JzEkLOR3H36arBnmsz9PeTaPKLzKmIKx7r6Z5Mh
~ ##
2)
~ ## curl -T test.txt sftp://fadl090.in.test.com/home/test/ --user
"test:test_at_123
"
% Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total
Spent Left Speed
100 6 0 0 100 6 0 17 --:--:-- --:--:--
--:--:-- 17
100 6 0 0 100 6 0 17 --:--:-- --:--:--
--:--:-- 17
#
3)
# curl -T test.txt sftp://FADL090.in.test.com/home/test/ --user
"test:test_at_123
"
% Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total
Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:05
--:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:05
--:--:-- 0
curl: (60) Error
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
#
*I have also checked the ftp upload with domain-name. It works in
case-insensitive manner. Logs below. *
# curl -T test.txt ftp://FADL090.in.test.com/ --user "test:test@123"
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 6 0 0 100 6 0 1 0:00:06 0:00:05 0:00:01
1
#
# curl -T test.txt ftp://fadl090.in.test.com/ --user "test:test@123"
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 6 0 0 100 6 0 1 0:00:06 0:00:05 0:00:01
1
#
~ # curl -V
curl 7.68.0 (i686-buildroot-linux-gnu) libcurl/7.68.0 OpenSSL/1.0.2q
zlib/1.2.11 libssh2/1.9.0
Release-Date: 2020-01-08
Protocols: file ftp ftps http https scp sftp tftp
Features: AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM SSL TLS-SRP
UnixSockets
~ #
Thank you.
Regards,
Murugan
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-06-02