connecting to a FTP server that has a certificate using SSIS - ssis

I am trying to download files from a FTP site inside my production environment. The FTP site has been assigned with a certificate (pfx). The FTP port is 21.
Due to this certificate I am unable to download the content using FTP task in SSIS.
I tried using script task however I got the same error that ftp cannot accomplish the connection due to certificate.
I also tried with SFTP component but that gave me a error shown below
[Execute: ] Error: Error: Unable to List: Socket read operation has
timed out
at SSIS.Extensions.SFTP.SFTPConnection.ThrowException(String
Message, Exception ex) at
SSIS.Extensions.SFTP.SFTPConnection.ListFiles(String remotePath) at
SSIS.Extensions.SFTPTask.SFTPTask.Execute(Connections connections,
VariableDispenser variableDispenser, IDTSComponentEvents
componentEvents, IDTSLogging log, Object transaction)
I googled the error and found out that SFTP does not use TLS/SSL (neither implicit nor explicit). Explicit/Implict TLS/SSL is used with FTP from the post
SSIS SFTP : How to resolve "Unable to Upload: Socket read operation has timed out"?
Is there a way to connect to FTP that has a certificate associated with it using SSIS?

Found the answer.... We can use the FTP task itself to connect with a FTP that has a certificate associated with it.
Below are the workaround for this...
There are three SSL options when we create a FTP site in IIS.
Allow SSL
Require SSL
No SSL
NO SSL option will not allow SSL certificates to be used for the FTP
Allow and Require SSL provides the SSL feature for the FTP.
In the FTP site that I had has the Require SSL option selected. I
changed that option to Allow SSL which still enables the SSL feature
for the FTP but allows the FTP task

Related

SASL Error connecting to remote libvirt over SSH: No worthy mechs found

I have a server running Ovirt Node that I'm trying to manage remotely using libvirt. I have an SSH keypair installed and can ssh user#server -i ssh-privkey successfully. When I try to connect to qemu+ssh//user#host/system?keyfile=ssh-privkey, I get this error:
authentication failed: Failed to start SASL negotiation: -4 (SASL(-4): no mechanism available: No worthy mechs found)
That led me down the path of getting TLS keys and certificates installed on the client and the server mostly according to these instructions (the configuration is slightly different because I have only one host and am using Terraform to manage the certificates*). However, I still get the same error. When I look at the output of libvirt --listen --verbose on the server when a connection failed, the only useful output is this:
error : virNetSocketReadWire:1792 : End of file while reading data: Input/output error
I have checked every firewall between the client and the server and they should all be wide open. What else could be the cause of this error?
* The goal is ultimately to use Terraform to provision libvirt resources, however I get the same errors trying to connect with virsh and virt-manager.
UPDATE: It's easier to connect just via SSH; this question exists because I couldn't figure out how to turn off SASL. It turns out SASL is enabled for SSH connections due to vdsm setting auth_unix_rw="sasl" in /etc/libvirt/libvirtd.conf. Removing that config means I can just use my SSH private key as I intended. The TLS configuration was a wild goose chase that was further hindered by vdsm changing the configured location of all the PKI files.
You're likely missing a RPM package on your client host. First on the virtualization host check /etc/sasl2/libvirt.conf and see what 'mech_list' setting is uncommented.
Back on your client you'll need to install a 'cyrus-sasl-XXXX' RPM that provides the same mechanism that the server is set to use. For a modern libvirt install it will probably be using 'cyrus-sasl-scram' for plain username/password auth, but for older installs, it might still be using 'cyrus-sasl-md5'

Connecting to a remote apache server

I need to connect to the server "http://ec2-52-57-235-167.eu-central-1.compute.amazonaws.com/" . I have the server's username and password access. I tried accessing from Filezilla but it says the "Invalid protocols specified."
What is the recommended way to access this server remotely from the internet so that I can access its files and edit its contents.
The server is hosted online now I want to access it from my local machine.
P.S. I also tried to find out the I.P address of this url but can't seem to figure out by the command "Tracert" in the command line.
Thanks.
Install putty and access the server with SSH connection. Filezilla won't work due to precedence of protocols.

PhpStorm vsftpd issue: 500 Illegal PORT command

I've setup an vsftpd on my Ubuntu 16.04 using this tutorial.
I can connect to server using FileZilla but not through PhpStorm. It issues this error when I try to upload a file to server:
Failed to transfer file 'C:\xampp\htdocs\sherkat\artisan.php': cant open output connection for file "ftps://SERVER-IP/artisan.php". Reason: "500 Illegal PORT command.".
What's wrong with my config?
The FTP protocol supports two modes for the data connection. In the traditional mode, called "active" (which is the default), on each command sent by the client the server creates a connection back to the client and uses it to send the response. This is impossible on the most setups nowadays (actually, in the past 20+ years) because of firewalls.
There is another mode, called "passive", where the data connection for the response is also initiated by the client. It works through firewalls without problems.
Press the "Advanced options..." button, check the "Passive mode" option and you're good to go!
As a side note, a better way is to use the SFTP protocol. If you can connect through SSH to your Ubuntu box, most probably you can also use SFTP to transfer files to it, without any other setup. FTP is an old and convoluted protocol. SFTP uses a secure connection (maybe it's not that important for you), and a simpler protocol.

SSIS FTP task does not work while FileZilla works

I am working on using SSIS FTP task to uploading some files to sftp://apollo.xxx.xxx.com automatically.
I can do that successfully by manually specifying sever name, server port, user name and password in FileZilla.
However, when I setup in the FTP connection manager, the connection fails (could be the issue of SFTP?).
I am just wondering if anyone could provide me some tips?
The native FTP task is just FTP. It does not support sFTP.
As you are not allowed to use third party software, you will be unable to fulfill your request. Based on this question, there does not appear to be a base sftp module in the .NET framework How do I upload a file to an SFTP server in C# / .NET?

When trying to connect through a proxy server TortoiseHg for Windows says "SSL error: unknown protocol"

The scenario:
You're behind a proxy server on Windows. You've configured TortoiseHg to use a proxy server; that is you've entered a server name/IP and port number. You are able to connect to the internet using Internet Explorer. But when you try to pull or push and it produces the error message "SSL error: unknown protocol".
(I plan to answer this myself.)
The cause is that Internet Explorer is using an automatic proxy configuration script and TortoiseHg is using a particular proxy server. IE is not using the same proxy server because the automatic script picked a different proxy server.
The solution is to enter the proxy server used by TortoiseHg in IE's connection settings, or figure out which proxy server you're using at the moment and tell TortoiseHg to use that one. You may need to browse an external web site before TortoiseHg can connect.
You can figure out which proxy server you're using by browsing with IE and then running the DOS command:
netstat
and you'll see some connections in the Foreign Address column on port 80 or 8080 (common proxy server ports).
In addition to your excellent tip, I offer one more...
If your company is using an automatic proxy script, then the proxy used for web browsing may not be the one you need for Mercurial. Thus if you try the proxy you find via netstat, and you get "getaddrinfo failed" errors in tortoise, then try this...
Get the proxy script address: IE->config->Internet Options->Connection->LAN ?Settings. Copy the url from the "Address" box.
Browse to that address and save the file to disk.
Open that file in notepad and scroll to the end, it probably ends with something like-- return "PROXY ipaddresshere:port" that's the IP and port you need.
Plug that IP and port into tortoise: right-click the repo, click settings, click proxy, put the ip and port into the Host field. I generally don't need user and password so try without it first.