SSH shell script to access FTP over explicit TLS/SSL
Hello,
I use the following SSH script to upload *.jpg files via FTP:
Code:
#!/usr/bin/expect
set timeout -1
spawn ftp -v -i [ftp server]
expect "[some word on the last line of server response]"
send "[login]\r"
expect "Password:"
send "[password]\r"
expect "ftp>"
send "mput *.jpg\r"
expect "ftp>"
send "quit\r"
[...] replaced with actual ftp server/account data.
Now I want to modify this script to do the same for FTP over explicit TLS/SSL
Any ideas?
Moderator's Comments:
Please use CODE tags when displaying code, sample input file contents, and expected output.
Last edited by Don Cragun; 06-11-2013 at 04:54 AM..
Reason: Add code tags
We have a requirement to setup secure ftp between our AIX v5.3 system and
our mainframe. We don't want to use openssh with sftp and scp. Our mainframe uses ftp over ssl/tls so we have to use this on our AIX box. We have openssl on our AIX system but I'm not sure how to setup ssl/tls over ftp
on... (4 Replies)
Can anyone recommend some good/reliable FTP clients for HP-UX that support SFTP/SSL/SSH and have a command line interface? They need not be "free" (license). Thanks! (2 Replies)
hi guys
I configured my openldap but now I want to implement SSL-TLS
This is my basic slapd.conf configuration
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include ... (2 Replies)
Hi,
I have a doubt..whether the SSL/TLS protocol uses the public key of the web server to encrypt data before sending it.
I knew the browser verifies the public key of the web server using the digital certificate (by verifying the signature of the certificate using trusted authority). whether... (2 Replies)
Hello,
I am not sure if I am posting in the right forum.
A website is running on a server with <ip1> in unix. It's written in JSP.
I need to add a link on the page, which will on-clicking ask for username and password to enter into another server <ip2> and gets all the files from a... (1 Reply)
Hi guys, Those who work on Apache may help me on this.
I have following problem
Description:
The remote service encrypts traffic using TLS / SSL and permits clients to renegotiate
connections. The computational requirements for renegotiating a connection are
asymmetrical between the... (3 Replies)
Hey Guys,
I am trying to setup ldap over tls in our lab. I am generating a self signed cert on the ldap server and importing that into the ldap system so it will use ldap over port 636. The clients will be a mix of solaris and redhat. I am lost on what I need to do on the client side to get... (0 Replies)
Hello to all,
I'm beguinner in Linux instalations and I'm trying to Communicate from Web Sites that i have running under apache with openLDAP for users authentication using SSL mediation that seems to be connected with LDAPS.
Can someone advise me how to do this, I have already installed... (1 Reply)
Discussion started by: CPMarco
1 Replies
LEARN ABOUT MOJAVE
curlopt_ftpsslauth
CURLOPT_FTPSSLAUTH(3) curl_easy_setopt options CURLOPT_FTPSSLAUTH(3)NAME
CURLOPT_FTPSSLAUTH - set order in which to attempt TLS vs SSL when using FTP
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FTPSSLAUTH, long order);
DESCRIPTION
Pass a long using one of the values from below, to alter how libcurl issues "AUTH TLS" or "AUTH SSL" when FTP over SSL is activated. This
is only interesting if CURLOPT_USE_SSL(3) is also set.
Possible order values:
CURLFTPAUTH_DEFAULT
Allow libcurl to decide.
CURLFTPAUTH_SSL
Try "AUTH SSL" first, and only if that fails try "AUTH TLS".
CURLFTPAUTH_TLS
Try "AUTH TLS" first, and only if that fails try "AUTH SSL".
DEFAULT
CURLFTPAUTH_DEFAULT
PROTOCOLS
FTP
EXAMPLE
TODO
AVAILABILITY
Added in 7.12.2
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO CURLOPT_USE_SSL(3), CURLOPT_FTP_SSL_CCC(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_FTPSSLAUTH(3)