Questions tagged [remote]

Working through the network with files, programs, etc., that are stored on a distinct machine from the original host.

Filter by
Sorted by
Tagged with
0 votes
1 answer
14 views

What's the best way to rsync two directories with git repositories?

I have two machines that I use for work. One is the local machine located at my home, and the other is the remote machine located at my office. I have a "development" folder in which I keep ...
user avatar
0 votes
0 answers
19 views

RHEL 7.9 remote install fails / stalls at Plymouth Boot Screen

I am trying to install RHEL 7 on a remote HP system which is quite old. It is running ilo v2. I am remotely mounting the ISO and it is reading it fine. I get the initial choice screen. I felt like I ...
user avatar
  • 203
0 votes
2 answers
31 views

"Reverse" SSH to Raspberry Pi with mobile internet access

I have a Raspberry Pi, which can access internet via mobile provider. I can install any software on this Pi and can program it to connect to any external host. But it has no static IP. Can I make this ...
user avatar
  • 2,617
1 vote
0 answers
92 views

Remote SSH connection from one server to another HANGS, no fail, no error

Trying to copy files from one server to another because the amount of files is not feasible to do by copying to my home pc and then out to second server. SSH, rync, and scp all hang from either server,...
user avatar
0 votes
1 answer
25 views

fstab entry to automate mounting B2 Backblaze bucket to local mountpoint

I maintain a ubuntu 20.04 LTS headless server and I can manually mount the B2 bucket using fuse s3fs for backup. How to add a line to fstab to automatically mount the B2 bucket at powerup? I know that ...
user avatar
-1 votes
2 answers
41 views

How to use pipe with "sudo -ui"?

I have this command cat ~/.ssh/id_dsa.pub | ssh root@[my_server] "cat >> ~/.ssh/authorized_keys" How can I do the same thing but with sudo -iu user1 before the 2nd cat? That is, I ...
user avatar
  • 19
2 votes
1 answer
54 views

Sudo password dialogue not showing up for some apps over XRDP

It happens in both Ubuntu 22.04 and Manjaro (Gnome). If I install XRDP on it and connect to it via XRDP, for some apps the sudo password dialogue is working, and for some other apps, it does not work. ...
user avatar
0 votes
0 answers
29 views

Powershell script from Linux using passwordless ssh "INFO: No tasks running with the specified criteria."

When I execute the powershell script from Windows server it kill the process: Script Content: taskkill /F /FI "WindowTitle eq Check and Start Encoding" /T Output: PS C:\Users\Administrator&...
user avatar
0 votes
0 answers
50 views

Unable to login to SSH remotely

When on the server i can login to localhost using: ssh localhost username@localhost's password: Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.11.0-40-generic x86_64) However when I try and login ...
user avatar
  • 101
0 votes
1 answer
123 views

Executing local script on remote server with local input

I have a python script and input data that the python script takes. I want to execute the python script on remote server without copying python script and data to the remote server. I tried the script:...
user avatar
  • 149
0 votes
1 answer
17 views

using heredoc in case statement for remote ssh host

I have a list of ssh commands to run on remote server, so wrote this snippet. #!/usr/bin/env bash echo '' echo "WOULD YOU LIKE TO PERFORM FILES CLEANUP: " read choice case $choice in yes|...
user avatar
  • 1,701
1 vote
1 answer
336 views

bash count files and directory, summary size and EXCLUDE folders that are fuse|sshfs

I need help for a bash script that counts files and folders in a specified directory on a Linux system (Debian), but I want to exclude a specified folder. I have a main directory named workdir with ...
user avatar
0 votes
2 answers
57 views

Copying files from remote securely

I've got a script on a local machine that is meant to copy files to a remote server overnight. I currently do it via scp using unpassworded key, as that was the only way for script to work. The script ...
user avatar
0 votes
0 answers
26 views

Open File Managers in remote X

I never need to open a GUI File Managers in remote X, until today. However none of the two File Managers that I have can do that, pcmanfm-qt and thunar. Typing them in my remote Xterm, they will just ...
user avatar
  • 561
0 votes
1 answer
311 views

How to access web application running in docker container on remote server?

I have a Ruby on Rails app running in a docker container on a remote server. When I'm connected to remote server with ssh like ssh user@<server_ip>, I can ping it with ping mywebapp.localhost. ...
user avatar
  • 101
0 votes
0 answers
91 views

grep with pipe and variables NOT working on remote server through ssh (working locally)

Below grep command is not giving expected result (matching line number) if I run it through ssh from a remote machine (passwordless authentication enabled). Variables have been defined correctly as ...
user avatar
0 votes
0 answers
26 views

How can a remore long running process return results?

I plan to have a long-running process (a Blender render, from 5 minutes to an hour) run on a remote Linux machine. What I am currently thinking of is a very simple process: move file to remote ...
user avatar
  • 111
0 votes
1 answer
88 views

"OpenGL version is too low (0)" does this matter with a remote connection?

I'm running an app on a remote Linux machine, whose console output tells me: OpenGL version is too low (0). Falling back to Mesa software rendering. OpenGL version: "3.1 Mesa 18.1.9 (git-...
user avatar
  • 7,311
0 votes
2 answers
153 views

rsync files between two remotes, with only access from the "intermediate"

EDIT #1 As per answer by roaima, I tried (here with user1=user2) [user3@M3]$ ssh -R 50000:M2:22 user1@M1 rsync -e "ssh -p 50000" -avz /absolute_path1/ user2@localhost:/absolute_path2/ ...
user avatar
0 votes
0 answers
56 views

Trying to connect to Remote DB2 database from Linux

I am trying to connect to a remote DB2 database from Python which is installed in the Linux system. Below are the details : Have installed the Cdata driver and configured the odbc.ini file in root as ...
user avatar
3 votes
1 answer
103 views

rsync not working with Linux Mint 20 as remote

I'm using rsync for years and have never come upon such a strange issue: everything works fine, unless the remote machine is running Linux Mint 20 (tried with 2 of those, one is still running 20.1 and ...
user avatar
  • 213
0 votes
0 answers
50 views

Linker not finding a local library - remote server

I'm struggling installing the VBT tool. following instructions on the github page I should have installed htslib first and then copy some files from hstlib directory to the VBT directory and the run ...
user avatar
0 votes
0 answers
68 views

How to scp files from a ssh cli to my local computer

Machine: MacOS 11.6 I'm using ssh to enter the command line interface of my remote machine, and I'd like to scp files there to my local machine. I got my local IP address using ifconfig, say it's aaa....
user avatar
  • 623
0 votes
1 answer
173 views

Secure RDP from windows to linux on port 3389

I'm looking for ways to access my linux machine (I've got two options, a machine running CentOS7 and a machine running Raspbian (rpi)) from a windows machine at school. I've installed xrdp and ...
user avatar
  • 47
1 vote
1 answer
241 views

Rsyslog - Change Default Log Directory(/var/log) for multiple clients

I have 2 Clients connected to my rsyslog server. I want to change the default log directory for each client. So client A writes to /var/log/ClientA and client B writes to /var/log/clientB. I am ...
user avatar
  • 33
0 votes
0 answers
90 views

Raspberry pi OS can't load lightdm

Running the Pi using physical monitor works fine. But without HDMI connection, The NoMachine couldn't find any display running. Trying start lightdm using service lighdm start via ssh didn't works, as ...
user avatar
  • 21
0 votes
0 answers
232 views

How to restart Anydesk every time I restart the PC using FreeBSD

Actually I'm using Anydesk on freebsd 13R to allows access to some coworkers. I have two problems to fix with FreeBSD and Anydesk : Anydesk server closes when the remote user closes the client ...
user avatar
  • 371
0 votes
1 answer
76 views

How to rebuild a broken SSH session automatically from the remote site?

I use Reverse SSH Tunnel behind a Customer-Grade NATed GSM Modem. This sounds terrible but it is fine. I use the following instruction: ssh -o ServerAliveInterval=60 -f -N -T -R12345:localhost:22 ...
user avatar
0 votes
0 answers
31 views

Is there an utility that tells whether a file path is a network share or on a local hard disk?

I want to test whether some paths are mapped onto remote shares before creating them, as they need to be created before their files are written two. They are sshfs paths for the time being. A basic ...
user avatar
  • 6,697
1 vote
1 answer
205 views

How to solve the issue that a remote Terminal screen is messed up when using `expect`? (usually after a resizing)

Using expect and password auto-login to remote with ssh, when resizing the window, stty size report old size. Cause commands like vim and less mess up.
user avatar
1 vote
1 answer
96 views

Safely configuring `iptables` on a remote system?

I want to configure a complex IP-tables configuration on a system that is only accessible via ethernet. What are the best practices for recovering from the inevitable typos? See for example "...
user avatar
0 votes
1 answer
173 views

LVM recovery with physical disk failure on remote system

Questions like this have been asked a lot here but I've not found any with the same situation as I have. I have a system with a failed LVM volume group and I have no physical access to it. More ...
user avatar
0 votes
1 answer
46 views

Can't connect to Ubuntu server from a specific client

I'm having problems pinging my local Ubuntu server (20.04.3 LTS) using my Windows machine. Sometimes it works, but most of the times it returns: Reply from <client ip>: Destination host ...
user avatar
0 votes
0 answers
224 views

How to redirect the local audio from FreeBSD 13 to Ubuntu 21.04 emulated with vm-bhyve

I don't hear any sound within my Ubuntu 21.04 VM,emulated with vm-bhyve on FreeBSD 13. On Ubuntu I have installed xrdp and as u can see below,it's working great : and on FreeBSD I'm trying to make ...
user avatar
  • 371
0 votes
0 answers
19 views

Capturing a processes file activity and transmitting it to a remote host in real time

Are there any tools out there to intercept all the file activity of a process, transmit that to a process on a remote host (eg. zmq), and replay it there, in real time? This is to enable remote ...
user avatar
0 votes
0 answers
18 views

scp from remote to remote does not work if not using -3 [duplicate]

I mean to copy files from one remote server to another. If using scp -3, command succeeds (I have remote1 and remote2 in my ~/.ssh/config) $ scp -p -3 remote1:dir1/file1 remote2:dir2/ but when not ...
user avatar
0 votes
1 answer
687 views

View live output of remote ssh command [duplicate]

Suppose I have a python script script.py from time import sleep for i in range(3): print(i) sleep(1) print('done') which I want to run on a remote server via an ssh command e.g. ssh me@server ...
user avatar
  • 429
0 votes
1 answer
202 views

SSH RemoteForward port to remote Ubuntu is not working

My local machine is mac, I am connecting to a remote Ubuntu 20.04.2 LTS machine called mini. Bellowing is the ~/.ssh/config section for mini Host mini User root RemoteForward 8377 localhost:...
user avatar
0 votes
1 answer
45 views

Need to install the same script across multiple linux servers

please excuse my ignorance but I am very new to the linux and server management space Use case scenario - I have 20 linux servers and I need to install the same package/script across all these servers....
user avatar
0 votes
2 answers
252 views

Removing files from remote machine

I remove files with wildcard by rm /home/files/*.csv but when I try run the command on a remote machine via ssh as ssh user@ip 'rm /home/files/*.csv' it tries to delete *.csv file instead, and I get ...
user avatar
  • 1,723
0 votes
0 answers
45 views

How to disconnect from bad ssh session inside other ssh without disconnecting first ssh

I usually have to connect to a border server before reaching the real devices I need inside a foreign network. Sometimes it happens that the device shows some problem and ssh session gets stuck. That ...
user avatar
0 votes
1 answer
35 views

copy files from multiple remote machines to local and create directories for remote machines

Have multiple vm machines that am using for studying, and have come up with this script for copying some files from vm's to my local machine: SG=rohos; date; for i in `cat /etc/hosts | grep "$SG-&...
user avatar
0 votes
0 answers
73 views

How to use rsync correctly to compare file hashes of two directories incl. subdirectories and interpret its output?

To check equality of a local and a remote directory I want to compare the hashes of all the files and did: $ rsync -avcn /home/me-here/thisss/ me@other.server:/home/me-there/thisss/ > diffs.txt ...
user avatar
  • 151
-1 votes
1 answer
267 views

executing script on remote host using ssh does not return

We have several scripts on remotehost which we trigger from my localhost using ssh like below. ssh remuser@remhost sh /web/bin/stop.sh We had OS patching activity this weekend post which the above ...
user avatar
  • 307
0 votes
1 answer
27 views

Escalated predefined ssh scripts to remote computer implemetation

The problem is that I want to run certain ssh commands (Or scripts) from computerA to computerB without using a password. Examples: ssh apple@computerB 'poweroff' ssh apple@computerB "killall ...
user avatar
  • 36
3 votes
0 answers
97 views

Opening powershell remote sessions in a loop in linux leaks memory

I am stuck with the following problem: we have an app that runs an continuous loop opening remote connection via powershell (performing some actions and then closing). This works fine in a Windows ...
user avatar
  • 298
0 votes
1 answer
46 views

How could I schedule a backup and then export it on a remote server (without a pw) by using cron job?

I need to schedule a backup (at a certain time) and set an automatic export to a remote server (without using a pw) with scp command. How could I do that? Thanks in advance.
user avatar
0 votes
1 answer
95 views

Remotely mounting a disk with sudo before rsync through ssh

Searching through this site has been extremely helpful to me, but I've been stuck on this question for some time. I apologize in advance if it is too trivial. I have two CentOS 7 servers, A and B. ...
user avatar
0 votes
0 answers
26 views

Alternative to SSH and SNMP for remotely gathering metrics

Does anyone know of alternative protocols for gathering metrics remotely from Linux servers other than SSH and SNMP? We are looking to support as much of the Linux ecosystem as possible including very ...
user avatar
  • 1
0 votes
1 answer
171 views

Push etckeeper created repository to remote Gitlab server, advices welcomed

I'm playing with etckeeper and it seems to be a good product. I use it only to track /etc filesystem locally, but these days the idea came to my mind - to create central Gitlab repository and to store ...
user avatar

1
2 3 4 5
13