We have a SQL Server but access is limited so we can't access the server directly. The only available access is to use another server running on CentOS Linux where I can SSH to it and then from this intermediate server to further connect to this SQL Server.
I am looking a simple way to list databases and schema on the SQL Server.
What would be the command to do the above from this Linux server, assuming one has the IP address and credentials of the SQL Server.