Questions tagged [remote]
Working through the network with files, programs, etc., that are stored on a distinct machine from the original host.
691
questions
0
votes
1
answer
45
views
ssh remote port forwarding in systemd
I would like to execute this command
ssh -R 2200:localhost:80 user@"myddns.net"
at every startup of my fedora system (note that the command itself is working in a shell).
I thought to use ...
1
vote
1
answer
36
views
Remote journal over AutoSSH tunnel
I'm having several remote sites (test setups), each having multiple Linux devices, uploading their journal remotely to Raspberry Pis in that remote site. I'm trying to forward these journals via ...
0
votes
0
answers
28
views
Why would apt fail to login using conf file information in auth.conf.d?
Quite a tricky problem, this one: I've set up a custom Debian repository on a remote server (let's say, example.com), which is served at https://example.com/aptrepos, and for that path I've set up ...
0
votes
1
answer
35
views
systemd - service fails to start on server boot
I made a system service on remote VM that should start on boot as suggested here:
[Unit]
Description={removed}
Wants=network-online.target
After=network-online.target
[Service]
User={my username}
...
0
votes
0
answers
25
views
systemd - service that starts on server boot
We have a development VM that occasionally reboots. I would like to have a systemd service running there that starts automatically on boot, before any user session. I have tried making a user service ...
0
votes
0
answers
35
views
execute a script on different remote machines on multiple files
I want to execute a script which is located on different machines. On each machine there is a set of files which the script should scan. I have something like this but it does not work:
for host in ...
1
vote
0
answers
18
views
While Loop Exits After Calling Function [duplicate]
I'm trying to do a db backup script using Bash.
When adding a "Resume" feature to the script, I do the following loop calling defined functions to do step by step (depending on the .lock ...
0
votes
0
answers
360
views
Error when setting up Google Remote Desktop on Ubuntu 24.04 LTS
I'm trying to set up google remote desktop from my Ubuntu system but I am getting the following error once I input the PIN number:
/opt/google/chrome-remote-desktop/start-host --code="4/...
0
votes
2
answers
79
views
tar: ./.tar.gz: file changed as we read it | "Flagged" files are unrelated to the file tar is supposed to operate on
I am trying to use tar to recursively compress all files with the .lammpstrj extension within the directory tree starting at the directory whose path is stored in the variable home. home contains the ...
1
vote
1
answer
111
views
scp from remote Linux server to local windows 11 machine returning "no such file or directory"
So I'm trying to download some data from a remote linux server onto my (unfortunately) windows 11 machine using the scp command in windows powershell. While I can send data to the server just fine, ...
0
votes
2
answers
93
views
SCP from A to C via B without making intermediate copy at B [duplicate]
I haven't seen this issue before, and I have been struggling for days, so I would be so grateful for some help.
I have a tar on my Desktop (Desktop) that I am trying to copy
to a remote server using ...
0
votes
0
answers
59
views
diff -qr command between local and remote directories
According to this process substitution can be used to do a SIMPLE diff between local and remote machine. However, I want to use the -qr option in the diff command, i.e., it must be recursive and brief ...
0
votes
1
answer
60
views
Issue with using SSH with jump host
From outside my network I can access my outside-facing server using a public-key with:
ssh [email protected]
From that shell, I can then access another server on the network (typing in the password) with:
...
0
votes
1
answer
27
views
Is it possible to move transmission (with all running torrents and downloaded data) from ubuntu GUI onto a transmission-remote server?
I currently have transmission running on a PC running Ubuntu desktop which I leave running continuously.
It currently has over a hundred torrents in various levels of activity uploading and ...
1
vote
0
answers
75
views
SSH client with instant input echo
When using the terminal on code-server (VSCode probably does it as well), input is instantly shown on screen (grayed out, until the server actually responds):
When I connect to the remote machine ...
0
votes
1
answer
194
views
Unable to SSH into remote machine but able to ping - VPNC
I'm writing and posting the solution that I found with a recent issue regarding VScode remote server, ssh and VPNC. Yep, I lost to much time on it, hope to save your time.
Issue
I had to change VPN ...
0
votes
2
answers
105
views
Counting Files in Remote location using sftp in shell script
Getting Error with the below command to check on the Remote directory a specific type of files. The requirement is to get the count of the specific files.
file_exists=$(sftp $FTP_UNAME@$FTP_HOST ls *$...
-1
votes
2
answers
67
views
Rsync with multiple wildcards
How can I rsync all files of multiple types from a remote server? E.g. I want to rsync all pdf's and png's from a folder on the server.
This raises a syntax error: rsync REMOTE_SERVER:REMOTE_PATH/{*....
0
votes
0
answers
101
views
Is possible restart a suspended system remotely?
For Ubuntu and Fedora based on GUI - both as remote clients - in a laptop (and even PC) is possible execute remotely through either SSH or Remmina the following command:
sleep 15 && systemctl ...
0
votes
1
answer
79
views
Remote Ubuntu PC becomes very slow when run in background
I am using my Ubuntu remotely via SSH mainly to use Python and manage data science projects. I usually run my scripts through shell files. I use tqdm to track processes times.
When I disconnect from ...
0
votes
0
answers
131
views
gnome apps very slow to start on on remote X server, other apps ok
I'm using meld to compare some files, on a machine running SLES 15 SP 1, and with the X server running on a Windows desktop; it's MobaXTerm's embedded X server, which I believe is Cygwin'ish.
For some ...
0
votes
0
answers
108
views
How to ban IPs at gateway with fail2ban on multiple backend servers?
I have configured fail2ban successfully on multiple backend servers on my network and it's all ok -- except that I would like a ban originating from eg email to be banned not just for email but all ...
0
votes
0
answers
87
views
Remotely control folder access on Ubuntu
I'm looking for a way to remotely control the access to a specific folder on a raspberry pi running Ubuntu 22.04 LTS.
This access needs to be changed regularly, so it has to be easy to change. Working ...
0
votes
1
answer
192
views
DD remote disk from windows
I am trying to image a disk for one of our network appliances and am running into an issue with saving the output file.
This is the command:
ssh [email protected] shell "dd if=/dev/md0 |gzip -1 -&...
0
votes
1
answer
98
views
Reboot into new OS image Remotely
I have a few old rpi 3b+ still running stretch which i would like to upgrade to either bullseye or buster. They are all remote and i access them via AnyDesk or reverse ssh tunnels as a backup.
I have ...
0
votes
1
answer
492
views
mail: unrecognized option '-S' | sending mail from linux server
I am trying to run a bash to send emails from my linux server. I am using the following command:
echo "This is the message body" | mail -s "This is the subject line" -a "From: ...
0
votes
1
answer
544
views
How do you connect Wine (Linux/Debian) to a Windows Remote Desktop?
How do you create a remote connection from Wine/Linux to Windows OS? I had been wanting to connect to the Linux Environment on my Chromebook for some time. I want to try to play games on my Chromebook ...
0
votes
1
answer
1k
views
chrome remote desktop appears offline even when the computer has internet
I have two computers one with Windows 11 and another with Ubuntu 20.04. I need to access the Ubuntu computer from the Windows 11 and I need help doing it.
I installed Chrome remote desktop on the ...
0
votes
2
answers
72
views
use a central linux machine for ssh authentication
I have multiple Linux machines that I want to use the credentials from a central, network reachable, machine to avoid the hustle of distributing passswords from the central machine to each machine.
Is ...
1
vote
1
answer
176
views
Use sshfs session to run commands on the remote
Something has happened with the SSH process on a remote server so that now when trying to connect it rants:
kex_exchange_identification: read: Connection reset by peer
It looks like the SSH daemon ...
2
votes
1
answer
724
views
SSH Key issue - Fedora 38
I've a remote server with at least 2 users (root and myself).
I've the same keys in .ssh/authorized_keys in both $HOME folder.
I can connect with the root account, but from my account i've a "...
0
votes
1
answer
877
views
Unable to reboot remote machine over ssh
I am working with an embedded system and would like to initiate a reboot from a remote machine.
I have tried various methods, including
ssh -o StrictHostKeyChecking=no root@${HOST} /bin/systemctl ...
0
votes
1
answer
131
views
Writing permission to symlink
I have a directory (linux container) on a remote server to which I don't have writing access. I created a symlink to use this container locally. When I run the symlink of the container with docker ...
0
votes
1
answer
534
views
Linux Bash Script Remote Server
I have a Bash Script which I want execute the commands like:
Download apache service
sudo apt-get install apache2 -y > /dev/null 2>&1
Download mysql service
sudo apt install mysql-server -...
0
votes
0
answers
91
views
Winexe error NT_STATUS_LOGON_FAILURE executing script from Linux to Windows Server 2012
I've installed winexe on my linux machine. I want to use it to execute some script on a Windows Servre 2012. It doesn't work, the error is NT_STATUS_LOGON_FAILURE.
I've followed this guide to install ...
0
votes
1
answer
79
views
Remotely rebooting linux mint server(SSH): permission denied (needed to enter password manually in the server)
I have a simple ssh server setup, an old Macbook air (XFCE Mint). I'm new in the topic and would like to try out some of the basic commands. tried rebooting the server by reboot from my client, ...
1
vote
1
answer
197
views
How to pipe terminal interaction with running process over network?
How can I run a program that expects to be executing in a terminal in such a way that it's STDIO can be arbitrarily connected-to remotely?
Specifically, I want to be able to launch gdb on one host and ...
1
vote
0
answers
2k
views
Ubuntu Remote Desktop through Real VNC error "The connection closed unexpectedly"
I have installed ubuntu on a PC at a remote site. Now I wanted to access it from my home. I got it after I promptly followed the instructions on https://linuxhint.com/disable-screen-lock-ubuntu/ That ...
1
vote
2
answers
378
views
How to prevent other users from creating new SSH sessions?
When I work on Linux test server (Debian 11) I have root, and want block other users open new session to this server during my work.
Is it possible?
0
votes
1
answer
69
views
SCP from a distant server with a cumulative size limit
I want to copy a number of files from a distant server to local computer, such that the total size of the files does not exceed certain limit, as I do not locally have enough disk space; and the files ...
0
votes
1
answer
41
views
Add a remote location through a login machine
I have my Ubuntu laptop (call it A) and I want to add a computer (call it B) to the "Other locations" tab of nautilus. The problem is that I can not ssh directly from A to B, but through a ...
0
votes
0
answers
53
views
How to redirect the output of a command running inside a loop on a remote machine (via ssh) to my local machine without breaking the loop?
I am running a piped ssh command on my Ubuntu 20.04 PC, where I am sshing into a remote machine, listening to a specific port and processing each incoming message as shown below:
ssh ${...
0
votes
0
answers
183
views
Simple ssh/telnet shell for debugging remote embedded device
I have an embedded device running some aarch64 Linux build, with busybox, but without sudo, nc, sshd, telnetd, /dev/tcp, /dev/udp, etc.
I would like to be able to remote in to run bash commands and ...
3
votes
2
answers
1k
views
How can I access a docker web application in a remote linux server directly from my windows local browser?
Following a mirror tutorial on dockerhub, I managed to run a docker web application on a remote Linux service. Here the host is the remote ubuntu server, which can be accessed via the browser address &...
2
votes
1
answer
2k
views
Recording/capturing/grabbing remote desktop RDP session as video on Linux?
I have just learned about RDP, and have successfully used remmina on my Ubuntu machine to connect to a remote Windows PC.
Now, I would like to record that remote desktop session as video from the ...
0
votes
0
answers
60
views
how to make a mount to a dir that will guard against writes to local filesystem
I am trying to make an app (on linux) that will auto mount google drives with rclone to upload data:
rclone mount LABELNAME: /tmp/1234.mnt
The app would then be able to have several threads process &...
0
votes
1
answer
2k
views
Ssh access to a server with internet access but no public IP address
I have an ssh server running Kubuntu 22.04 behind a router providing internet connection, but without a public IP (this is the policy of the ISP). So, the server can access the internet, but any port ...
0
votes
1
answer
177
views
Remote access from Linux to Linux without port forwarding on either side (through a middleman?)
I want to remotely access another Linux computer on a different network, but I can't use port forwarding on either network. How would I do that? Is there maybe a website that both the computers can ...
1
vote
1
answer
82
views
Saving the output of find to a variable in a remote server
# Declare the array
declare -a LC_lines
# Read the lines of the file into the array
readarray -t LC_lines < unique_running_jobs_directory.log
sshpass -p password ssh -n [email protected] ...
1
vote
0
answers
175
views
Is it possible to compile and run local source code via ssh without copying the program to the remote machine?
Suppose I have a Java project with a bunch of source codes in my local machine (any OS).
I want to compile and run the source code in a remote Linux machine via ssh without copying the source code ...