remote-access

Connect to remote database from Heroku with static IP (Since database server will only allow whitelisted IPs)

跟風遠走 提交于 2019-12-08 03:37:33
I am running a Ruby on Rails application on Heroku and my database is in someother place where it will be accessed with certain whitelisted IP's only but since heroku doesn't provide dynamic IP's I thought of using proximo. Please help me how to connect to remote database with proximo from heroku. We had a difficult time achieving this (we ended up whitelisting every domain) IP's The problem is Dyno's are hosted on AWS' EC2 cloud - meaning they aren't actually Heroku's servers. This causes a lot of problems, as the IPs are all shrouded & change: Because the Heroku dyno grid is dynamic in

How can I a call stored procedure on a remote MySQL Ubuntu server?

好久不见. 提交于 2019-12-08 00:44:20
问题 I have an Ubuntu server with MySQL and many Stored Procedures (server A) and another Ubuntu server with MySQL (server B). I'd like to populate the database on server B with data from the stored procedures on server A. At this point I'd like to test the connection with no success. I tried this on server B: mysql> EXEC server_A_IP.DB_name.username.sp_courses(); But it gives this error: ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL

compass/sass remote themeing via sftp/scp with alternate port

房东的猫 提交于 2019-12-07 10:57:32
I am trying to get compass/sass to watch changes on my local computer and reflect those changes remotely using a custom config.rb script. net::sftp works but my server requires a custom ssh port. I couldn't find any mods to make sftp work with an alternate port so im trying net:scp now, the problem is I dont know the proper command structure to upload using net:scp and wanted to see if someone can help me. Here is my code: # Require any additional compass plugins here. require 'net/ssh' require 'net/scp' # SFTP Connection Details - Does not support alternate ports os SSHKeys, but could with

vscode python remote interpreter

核能气质少年 提交于 2019-12-07 03:18:24
问题 By using VSCode (Visual Studio Code) I execute Python code on a local Python (Anaconda) interpreter. Now I would like to set it up so that I am able to execute that code on a remote Python interpreter. I have a Linux device which has its own Python and is accessible via ssh. Is it possible to configure it? If so how? Thank you. 回答1: While Microsoft is working on officially implementing this in VSCode (see: https://github.com/Microsoft/vscode-python/issues/79) I am personally using the

JGit : connect to distant repository

别说谁变了你拦得住时间么 提交于 2019-12-07 02:46:33
问题 I searched through Google, forums and JGit user guide but couldn't find how to connect to a distant repository with the API. Anyone has an example or just an idea on how to do that? Thanks for your help. 回答1: Currently, JGit 2.0.0-SNAPSHOT does only offer org.eclipse.jgit.storage.file.FileRepository org.eclipse.jgit.storage.dfs.InMemoryRepository concrete Repository classes, meaning that since org.eclipse.jgit.api.Git takes a Repository , it is not possible to work remotely. Since Git by

Bash: start remote python application through ssh and get its PID

纵然是瞬间 提交于 2019-12-07 01:26:38
问题 I'm creating a little bash script to copy new files from a windows machine to a remote linux centos server (i run this script using the git-shell) then i want to restart the python application thats running in the server to use those new files. The problem is that everytime i run this script i want to end the actual running process before i start it again, so i want to get the pid of the process i start and save it to a file in the remote host so i can read it from there the next time i run

Simplest Way to Remotely Interact With Python Script

走远了吗. 提交于 2019-12-07 00:54:35
I am setting up a Raspberri Pi on a network, which runs a Python script to control GPIO pins. I need to change a variable in this script from another computer on the network, via GUI, or command line. What is the simplest way possible to accoplish this (I am new to this)? Maybe a simple webpage hosted on the Pi somehow with buttons that control the variables? Thanks EDIT: Sorry, I was trying to keep it simple. The script will be started at boot and run continuously, monitoring a temperature, and cycling a heater on/off (via GPIO pins) to maintain the temperature stored in a "set_point"

Connecting to a 2014 SQLEXPRESS database on an externally hosted computer through TCP/IP

半城伤御伤魂 提交于 2019-12-06 15:41:58
I am working on a system whereby I can update a small database from several locations. I wish to host the database on my home computer and allow connections to be made to the database from two other locations through tcp/ip. I have done the following thus far: Enabled TCP/IP for SQLEXPRESS Allowed port 1433 tcp on my firewall Allowed port 1434 udp on my firewall Enabled SQLEXPRESS server to allow remote connections I was hoping to be able to connect to the database by opening sql management studio on the other pcs and using the following format [ExternalIP]\SQLEXPRESS but as of yet I have been

Logon failure: unknown user name or bad password? But I am using the right username and password

不问归期 提交于 2019-12-06 15:09:27
问题 I want to connect xml file in remote server. I wrote my code like this: string XMLPATH = @"\\10.222.54.141\c$\Data\CL\Casinolink30\BuildFiles\Logging\980\NoLog4NetFile.UnitTest.Tests.nunit-results.xml"; FileWebRequest request = (FileWebRequest)FileWebRequest.Create(XMLPATH); request.Credentials = new NetworkCredential("administrator", "Igtcorp123"); FileWebResponse response = request.GetResponse() as FileWebResponse; Stream stReader = response.GetResponseStream(); XmlTextReader reader = new

How can I a call stored procedure on a remote MySQL Ubuntu server?

守給你的承諾、 提交于 2019-12-06 11:18:22
I have an Ubuntu server with MySQL and many Stored Procedures (server A) and another Ubuntu server with MySQL (server B). I'd like to populate the database on server B with data from the stored procedures on server A. At this point I'd like to test the connection with no success. I tried this on server B: mysql> EXEC server_A_IP.DB_name.username.sp_courses(); But it gives this error: ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'EXEC server_ip.db_name.owner.sp_courses()' at line 1 This