Questions tagged [remote-server]

remote-server is a machine used for data processing which is accessed via a network

Here are some questions which detail some common use cases:

1774 questions
3299
votes
11 answers

Remove a file from a Git repository without deleting it from the local filesystem

My initial commit contained some log files. I've added *log to my .gitignore, and now I want to remove the log files from my repository. git rm mylogfile.log will remove a file from the repository, but will also remove it from the local file…
mveerman
  • 33,863
  • 3
  • 19
  • 14
511
votes
5 answers

How do I push a local Git branch to master branch in the remote?

I have a branch called develop in my local repo, and I want to make sure that when I push it to origin it's merged with the origin/master. Currently, when I push it's added to a remote develop branch. How can I do this?
picardo
  • 23,016
  • 32
  • 98
  • 148
75
votes
5 answers

pg_dump postgres database from remote server when port 5432 is blocked

I'm trying to pg_dump a SQL database on a remote server in our DMZ. There are 2 problems. 1) there is n't a lot of space left on the remote server so the normal command run to locally backup the database pg_dump -C database > sqldatabase.sql.bak …
Anthony McGovern
  • 753
  • 1
  • 6
  • 5
74
votes
4 answers

How to open remote files in sublime text 3

I am connecting to remote server using "mRemoteNG" and want to open remote server files in my local sublime text editor. During my research, I found this relevant blog https://wrgms.com/editing-files-remotely-via-ssh-on-sublimetext-3/ and followed…
Raman Balyan
  • 941
  • 1
  • 13
  • 27
57
votes
4 answers

How to execute a shell script on a remote server using Ansible?

I am planning to execute a shell script on a remote server using Ansible playbook. blank test.sh file: touch test.sh Playbook: --- - name: Transfer and execute a script. hosts: server user: test_user sudo: yes tasks: - name: Transfer…
Pattu
  • 2,591
  • 6
  • 29
  • 37
44
votes
3 answers

How do we set remote in Typeahead.js?

In previous versions I could do: $('#search').typeahead({ name: 'Search', remote: '/search?query=%QUERY' }); But since the 0.10 update, typeahead.js is asking us to define source which I cannot make to work. How do I define remote without…
Zuhaib Ali
  • 3,199
  • 3
  • 17
  • 30
38
votes
4 answers

Use SSH to start a background process on a remote server, and exit session

I am using SSH to start a background process on a remote server. This is what I have at the moment: ssh remote_user@server.com "nohup process &" This works, in that the process does start. But the SSH session itself does not end until I hit…
futureshocked
  • 1,995
  • 3
  • 22
  • 32
32
votes
6 answers

git clone from local to remote

We're in the process of migrating from Mercurial to Git for our workflow and I have two minor issues. First, is it possible to "clone" a local repository directly into an empty remote (ssh) dir? Currently when we create a new website we basically…
hlidotbe
  • 798
  • 2
  • 8
  • 17
27
votes
6 answers

Connect to external server by using phpMyAdmin

I have phpMyAdmin installed on my local machine. How can I make it connect to an external server?
Neveen
  • 2,005
  • 3
  • 20
  • 22
26
votes
6 answers

How to backup MySQL database on a remote server?

I have a MySQL database existing on a remote server. I only have sql connection privilege. I don't have FTP access to the server, and I need to do a complete dump of the database. I have tried mysqldump, but the issue is that it is creating the…
john smith
  • 271
  • 1
  • 3
  • 4
24
votes
11 answers

How to connect to a remote Windows machine to execute commands using python?

I am new to Python and I am trying to make a script that connects to a remote windows machine and execute commands there and test ports connectivity. Here is the code that I am writing but it is not working. Basically, I want to and it returns with…
zewOlF
  • 303
  • 2
  • 4
  • 13
24
votes
2 answers

Connecting to remote redis server

I wanted to make some changes in redis.conf, so that whenever i type redis-cli it connects me to redis installed on remote server. I know that we can connect to redis installed on remote server by : redis-cli -h 'IP-Address-Of-Server'. But…
user1304683
  • 365
  • 1
  • 3
  • 11
22
votes
7 answers

php - How to force download of a file?

I'm looking to add a "Download this File" function below every video on one of my sites. I need to force the user to download the file, instead of just linking to it, since that begins playing a file in the browser sometimes. The problem is, the…
user15063
22
votes
2 answers

Opening remote project in PyCharm

I'm working on a project that is located in a remote server. Do I able to open it in PyCharm from my local machine ? I couldn't find the way.
kbrk
  • 390
  • 1
  • 3
  • 26
22
votes
1 answer

How do I establish a bidirectional SSH Tunnel

Is it possible to do the following via an SSH tunnel... Host-1 establishes an SSH connection to a Remote Server I wish to log into the Remote Server and execute commands over SSH back on Host-1 Host-1 is a device that I will not have access to…
Barry
  • 382
  • 1
  • 3
  • 11
1
2 3
99 100