Does phpseclib need a ftp client setup on server? - cakephp

I'm using CakePHP and its plugin CakeFTP. This plugin relies on phpseclib. I wrote a function in a model which log to a remote FTP server, download files and process content using CakeFTP.
On my local machine (Ubuntu 14) everything goes fine : connection to the remote server, downloading files and so on. I pushed my work on my client server and I get a "unable to connect" error (the remote FTP server is the same).
I don't manage my client's server, but I have a ssh access, so I tried to connect to the FTP remote server from a terminal, and I get "ftp : unknown command".
I didn't dive into CakeFTP or phpseclib code, but could my bug be caused by the absence of FTP client on this server ?

Related

MYSQL - No Connection establish, COULD NOT CONNECT , SERVER MAY NOT BE RUNNING, unable to connect to localhost

when i try to open my mysql workbench it shows me
! MYSQL - No Connection establish, COULD NOT CONNECT , SERVER MAY NOT BE RUNNING, unable to connect to localhost
from services i try to run the server but it not running it shows me this error pop up massage
The MYSQL80 services on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs
here is the image of error
this error massage popup image
i trid all solution like restart my pc & server sevrol time it can not solve my problem
also try other solution but i could not find my.ini or my.cnf file from my mysqlserver folder ,
so thats why i would not beang able to remove hex detail from file
so , when i try to backup my database from command prompt and workbench im not able to backup my database because server is not running

Connect to linked server (Oracle) in SQL Server using Instant Client

I need to connect to a remote database (Oracle) using a MS SQL Server (2019) linked server. What I did so far:
Installed Oracle Instant Client x64 and the ODBC drivers on the machine where the SQL server is running
Created a symlink to the central TNSNAMES.ORA (on a file share in the network) inside the Oracle Instant client folder.
Set the necessary environment variables
Created an ODBC connection to the database on the Oracle server on this machine
Restarted MS SQL Server
Created a linked server (Microsoft OLEDB Provider for ODBC Drivers) in the SQL instance
When connecting to the SQL Server using sqlcmd on this machine (I did not install SSMS there), I can query the linked database using OPENQUERY(). I can also read the file TNSNAMES.ORA using this command (note, the given file is the symlink, but it displays the contents of the linked file, as it should):
SELECT * FROM OPENROWSET(BULK 'C:\InstantClientx64\tnsnames.ora', SINGLE_CLOB) TNSNames
So far, everything is fine.
Now, when I connect to the SQL Server from my workstation using SSMS, i get the following error when trying to read TNSNAMES.ORA using the command above:
Cannot bulk load because the file "C:\InstantClientx64\tnsnames.ora" could not be opened. Operating system error code 5(Access is denied.).
I created a file test.txt in the instant client folder containing something like "Am I allowed to read this?" - and I was, no problems.
I started procmon on the server to find out what happens. When using the above command on the SQL server, I get a REPARSE (because it's a link!), and then SUCCESS, the file is displayed in the sqlcmd console.
When using this command in SSMS (on my local workstation), first appears the REPARSE (OK), then ACCESS DENIED.
In both cases it is the same user account which is displayed as "Impersonating" in the procmon's details. There is definitely no problem with a firewall, and the read permissions on the tnsnames.ora file on the network share are granted for Everyone. I am also able to create an ODBC item on the local workstation, and can connect and query the database from here.
I have done this in the past I don't know how often, and never had problems. What am I missing?
Why are you trying to read the tnsnames.ora file via SQL? The Oracle libraries will (should) internally open it and use it when your app connects to the DB.
The default location for network config files is shown in the Instant Client installation doc. In your case it will be C:\InstantClientx64\network\admin. Unless you have set the TNS_ADMIN variable, then start by creating this subdirectory and putting tnsnames.ora in it.
(A future version of Instant Client on Windows will create the network\admin subdirectory automatically, similar to the way it is created with the Linux Instant Client packages).

Impossible to connect to minecraft remote server : connection refused

I'm trying to set a Minecraft 1.15.1 server on my Ionos Cloud Ubuntu 18.04 server, used 3 differents tutorials, openned port 25565, allowed all users to access the folders.
The server runs perfectly, but when I tried to connect to it I get the error :
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information
No informations on the minecraft logs, can't find anything on apache logs.
I there a log anywhere which can provide me informations about the problem blocking the connections to the minecraft server ?
Resolved : Ionos, my server provider, have an extra firewall which is controlled in my server control panel. I added the port to the whitelist and now it's working perfectly.

Can I stop VSCode Remote Server re-installing itself when I connect via SSH?

I have got VSCode Remote via SSH working successfully between my Mac client and our Centos server. Our server is not online by default and I have to manually set proxies for it to download the Server.
VSCode Server wants to re-wget itself every now and then when I connect. When it does I need to kill the connection, set the proxies and reconnect to allow it to download the Server files.
My question: Is this wget procedure required (i.e. important updates) or can I bypass it?
Thanks in advance

Forward SQL Server ODBC over SSH via putty

I would like to access a Azure SQL database. It is accessible on port 1433. However, the firewall is blocking this request. Therefore, I wold like to tunnel my connection.
Setup
The client is running on Windows 10. I can connect to a remote linux server. This server runs at home and when I'm at home, I am able to access the SQL database. So I assume my linux server is also able to connect to the Azure database.
Tunnel request?
I want to access the database via an ODBC connection. So, I tried to tunnel the connection using putty:
Putty connects to linux server and tunnels localhost:2433 to server-url:1433
Client connects to localhost:2433
Client has access to database
However, this is not working.
What goes wrong?
I am able to connect using putty to linux server.
I have setup a tunnel inside putty at the Connection > SSH > Tunnels page:
Source port: 2433
Destination: server-url:1433
I have set the radio buttons to Local and auto.
What goes wrong here? I don't know how I can investigate this properly. Maybe there is a problem at my linux server, that it can't connect to Azure SQL. But I think my tunnel is not working correctly. Can you help?
I didn't get it to work with putty, but if you have access to a shell you can use
ssh -L <local_port>:localhost:<remote_port> user#server -i "path to your private key file if you need one for authentification"
So in your specific example it would be
ssh -L 2433:localhost:1433 user#server-url
I used this to create an ODBC connection from RStudio (you can use the built in terminal to establish the tunneling) to a postgres db running in a docker container on azure.

Resources