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

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

Related

How to connect Mule application to SQL Server with Windows Authentication

I have SQL Server installed on my PS. I can connect to it using Windows Authentication and SQL Authentication using SQL Server Management Studio. But, when I try to connect it from Mule it's always a connection error.
Things I've tried so far:
Used default option provided by MuleSoft for SQL Server.
Tried turning my firewall off.
Tried integretaedSecurity=true.
Tried Generic connection and provide my own JDBC URL
No luck so far. Any help please?
It will be good if you can provide the exact error.
But mean while,
Try enabling TCP port in the system.
Below are the steps to enable TCP (in local machine).
Open the 'Sql Server Configuration Manager' application.
In the left pane, go to 'SQL Server Network Configuration' -> 'Protocols for [instance-name]'
Right-click on 'TCP/IP' and select 'enable'.
Restart the 'SQL Server ([instance-name])' windows service or restart your machine.
You need to ensure that the DLL sqljdbc_auth.dll is in the path of execution for Mule. Note that integrated authentications will work only when Mule is executing in a Windows OS. It will not work if deployed to Linux, CloudHub or Runtime Fabric.
Full instructions: https://help.mulesoft.com/s/article/How-to-use-Windows-Authentication-in-Database-Connector-with-Microsoft-SQL-Server-in-Mule4

Connect to database through two ssh tunnels in IntelliJ IDEA

I'm trying to add a postgresql database as a datasource in IntelliJ IDEA Ultimate.
I've worked with a datasource through ONE ssh tunnel already. But now the database server is behind a firewall which only accepts ssh connections from a management server. The only way to access the db server goes over the management server.
So I (or IntelliJ) have to connect via ssh to this server and then, by using another user, tunnel via ssh to the database server.
Everything clear? :-D
The problem is, that IntelliJ offers only to configure one ssh tunnel. But after the first tunnel I need to use a second one, to finally connect to the database server...
Any Ideas?
Thx in advance.
I'd create a local port forward using OpenSSH or any similar tool which will forward 127.0.0.1:2222 to firewall:22 via the Management Server, then use IntelliJ IDEA tunnel configuration to 127.0.0.1:2222 like you would do with the single tunnel.
ssh -L 127.0.0.1:2222:firewall:22 <management server>
You can configure an External Tool to automate this process. On Windows machine I had great experience with Bitvise SSH Client for creating tunnels/port forwards and starting them automatically.
ssh supports your scenario out of the box. The trick is to create two entries in your ~/.ssh/config file for the management server, one for your-user and one for special-user. Then use ProxyJump to chain your connections together.
So, start by setting up a Host section for the management server and the user your are connecting to from your local machine:
Host mgmt
HostName management.server.com
User your-user
...
Then, set up a Host for the user on the management server that you will be logging in as:
Host mgmt-special-user
HostName management.server.com
User special-user
To this same host, add a directive to tell ssh to create a tunnel to your DB:
LocalForward <free-port-on-your-box> <db-ip-or-host>:<db-port>
Then tell ssh that this host can be reached from the first host:
ProxyJump mgmt
You can now ssh mgmt-special-user from your local machine. ssh will automatically jump through the mgmt host, and will also automatically extend the tunnel through mgmt and back to your local machine.
ProxyJump (-J) was added in OpenSSH 7.3 (released in 2016).

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.

Starting monetdb for remote connections

I am trying to open monetdb server for remote connections. I understand that by default server only allows connections from localhost. By setting mapi_open=true, mserver5 allows remote connections. The server is started using the daemon monetdbd. Setting monetdbd set mapi_open=true, doesnt work/pass property to mserver5.
In merovingian.log I can see after starting server ( via monetdbd start /path/to/dbfarm) that mserver5 entry with mapi_open=false.
How to pass mapi_open=true to mserver5?
I tried creating .monetdbd.conf in mydbfram, restarted the daemon, but it didnt help.
The default port (50000) is open. And I am trying to connect via mclient.
Any suggestions/pointers? Thanks in advance for your help.
Regards
p.s server is running on CentOS version 7
Which MonetDB version is this? There has been a change in the development version. To open the database port to allow external connections, you need to change a configuration flag in a stopped monetdbd:
monetdbd set listenaddr=0.0.0.0 <dbfarm>
Where <dbfarm> is the path to your database.

Does phpseclib need a ftp client setup on server?

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 ?

Resources