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:

1968 questions
3791
votes
14 answers

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

I want to remove a file from my repository. git rm file_to_remove.txt will remove the file from the repository, but it will also remove the file from the local file system. How do I remove this file from the repo without deleting my local copy of…
mveerman
  • 38,827
  • 3
  • 22
  • 14
565
votes
7 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
  • 24,530
  • 33
  • 104
  • 151
102
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. there is not 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
  • 1,023
  • 2
  • 8
  • 5
84
votes
8 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
  • 3,481
  • 8
  • 32
  • 41
80
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
  • 983
  • 2
  • 16
  • 32
45
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,344
  • 3
  • 20
  • 32
45
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
  • 2,105
  • 4
  • 23
  • 32
39
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
  • 888
  • 2
  • 9
  • 17
33
votes
5 answers

Opening remote project in PyCharm

I'm working on a project that is located in a remote server. Can I open it in PyCharm from my local machine ? I couldn't find the way.
kbrk
  • 610
  • 1
  • 9
  • 27
31
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
  • 403
  • 3
  • 8
  • 13
29
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
  • 301
  • 1
  • 3
  • 4
29
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,165
  • 3
  • 20
  • 22
27
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
25
votes
5 answers

Persistent use of Jupyter Notebook from remote server

I connect to a remote server using ssh -L but if I close the laptop lid or the connection is lost, the jupyter notebook is disconnected. After I reconnect to the remote server, the "last" session is lost. What can be done to make it…
Michael D
  • 1,711
  • 4
  • 23
  • 38
25
votes
5 answers

Restore dump on the remote machine

I've got my own machine with postgres dmp file, which I want to restore on the remote virtual machine (e.g. ip is 192.168.0.190 and postgres port is 5432) in my network. Is it possible to restore this dump using pg_restore without copying dump to…
Danila Zharenkov
  • 1,720
  • 1
  • 15
  • 27
1
2 3
99 100