Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [remote]

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

2
votes
1answer
38 views

Remove carriage return (\r) from variable in expect script

Setup Ubuntu 16.04 expect Scripts In the simple script bellow the goal is to simply find the oldest .zip file in a directory on a remote machine using ssh. Then use scp to download this file to the ...
0
votes
1answer
52 views

How to prevent someone with remote access from changing my file permissions?

If someone gets unwanted remote access to my computer/OS, what's to prevent them from opening a terminal and changing the permissions on my files? I have a FW that is very good, but, let's assume ...
1
vote
0answers
71 views

Disconnecting unwanted remote access

If someone is remotely connected to my single ARM board computer with Debian 32-bit OS, (example: thru hijacking the browser), which connects through a firewall on a separate Orange Pi board, and I ...
2
votes
1answer
71 views

Why “ >/dev/console” for remote beep (echo-command)

I've learned that this command: echo -e "\a" triggers a beep on the local system, whereas this command: echo -e "\a" >/dev/console triggers a beep on a remote system. Why is this? What is the &...
0
votes
0answers
29 views

Why is remote desktop so slow compared to cloud gaming software

You have applications like parsec, steam streaming, and nvidia's version. (Don't know what it's called) that are so fast and redirect audio to the remote device. I was actually able to play games, ...
0
votes
0answers
10 views

hosts.equiv: What user context is given to remote users executing r-commands?

I understand that .rhosts files found in user's directory under /home allow remote users to issue r-commands (e.g. rcp, rlogin), targeting the system, in the context of the user who owns the file. ...
1
vote
2answers
61 views

Local/Remote ls

I want to grab relevant lines out of an SNMP logger in real-time and move them over to my application server for checking. The second half is fine, scp is doing the trick. The first half is causing me ...
0
votes
1answer
41 views

Execute a remote bash script locally

I've seen that it's possible to run scripts stored locally on a remote server eg.: run a command: ssh USER@HOST 'COMMAND' run a script ssh root@192.168.1.1 'bash -s' < script.sh What about ...
0
votes
0answers
42 views

mount: RPC: Remote system error - No route to host

I'm trying to mount folder from my virtual machine to embedded device with custom linux (BusyBox). I use command mount -o port=2049,nolock,proto=tcp,ro -t nfs "VM_IP:/home/user_name" "/mnt/nfs/...
1
vote
1answer
21 views

What is the most reliable method to update a remote Fedora Server installation?

For a remote server that can only be accessed via ssh, is DNF System Upgrade still the recommended release upgrade method? On a local machine, you can watch the progress of the upgrade after you ...
0
votes
1answer
18 views

Remote screen session

This is running me crazy: I want to use 4 screen windows (within the same session) in a remote server (GCloud) to process 4 subjects in a parallel way. Long story short: I first create a detached ...
1
vote
2answers
49 views

Can USB devices be used with X11 over the network?

I'm considering running an X11 client on an existing server, and then having a thin 'client' (X11 server) on a Raspberry Pi or similar, as a development environment / general computing. However, ...
0
votes
0answers
57 views

bash shell modes? how to pipe request to shell on remote server

I have this tcp server in Node.js that will open a shell and pipe the request to the shell: const net = require('net'); const cp = require('child_process'); const server = net.createServer(s => { ...
2
votes
0answers
48 views

Copying contents of a folder via SCP results in `scp: error: unexpected filename: .`

I was using a script to copy the contents of a folder via SCP, without copying the folder itself. Something like this: scp -i id_rsa -P "$PORT" -r "$HOST:/folder1/folder2/." "backup" (I'm not able ...
1
vote
1answer
82 views

Script for sending commands via ssh and not wait till and leave the terminal

I have sevaral computers, combined into network with Ethernet switch. All are running Fedora server and have connection to Internet. What I need is a script, which: Connects to all nodes from list ...
1
vote
2answers
36 views

ssh on remote host but switch user on local host running as root

I have a script running as a root. It ssh to remote host and run a script as user gol. I have added ssh keys for the user(gol) to remote host. But since the script is run as a root it still prompts ...
2
votes
2answers
159 views

Encrypt a file on remote host

How to encrypt a file on the remote host using Ad-Hoc command 'ansible-vault'. for example, a myfile.txt on a remote machine needs to be encrypted from the host machine
0
votes
2answers
22 views

Executing shell command on ubuntu using php from remote machine

On a web page I would like to have a button that launches a python script on a remote machine. Is there a way to do that in php? More specifically I would like this shell command to be executed on the ...
1
vote
1answer
50 views

Suggestions for SSH Client in Linux Mint

I am using Linux Mint 18.3 on a Dell Laptop. I like the connect to server feature in my file browser windows which allows me to easily access remote directories via SSH. However, as I repeatedly ...
0
votes
1answer
38 views

How to use both ssh and sshfs through VPN with single connection?

I am used to mount remote filesystem by sshfs to edit code and view files and also login via ssh to run the code and any commands. Now I have to connect to the network via VPN before I can ssh/fs ...
1
vote
0answers
28 views

How can I use for example SourceTree with a remote repository?

I've a server with a folder. In this folder I've did a git init to create a git repository in this folder. When I open now a file in this folder and change something, the git notices this and mark it ...
1
vote
0answers
12 views

Remote-control or video-stream a closed-computer-system with another computer (no VNC)?

I have two computers next to each other (A - test computer, B - recorder/remote client). I need to be able to either: remote control computer A from computer B, or record and project/stream video out ...
0
votes
1answer
37 views

grep on remote machine

I have a template file with content count : 2 ssh ubuntu@ip << EOF cat template|grep count|awk -F":" '{print $2}' > log EOF Desired output is 2 but it's printing count : 2
0
votes
1answer
40 views

if condition failing inside SSH

I'm ssh-in to a remote machine (ubuntu) and trying to execute a little script in there.The script looks like this: myfunction() { input=$1 count=$2 ssh ubuntu@ip <<EOF if [ $input = ...
0
votes
0answers
83 views

How to start KDE application launcher manually outside (independent of) Plasma desktop?

I am operating some remote Linux boxes via X11 over SSH in multi-window mode. The remote boxes have a lot of KDE and other graphical applications installed, but neither X nor Wayland. I am operating ...
0
votes
0answers
112 views

Remote ssh script execution with EOI or EOSSH adding dots in front of commands

Here the first block was running, second block was not. And the problem was EOI considers spaces as dots, I think. But, it does not consider tab as dot. Making no indentation worked for me. But is ...
3
votes
1answer
285 views

How to execute local script by passing arguments on remote via ssh as a different user?

I am trying to execute a local script on remote server via ssh using keytab authentication. I am able to connect to remote via ssh as sachin(user who gets the ticket) and then I am spawning a bash ...
0
votes
1answer
38 views

Trying to execute a script (that creates folders) on remote server: “Permission denied”

I wrote a script that should allow me to create directories with specific permissions on a remote server. I used the command to execute the script to the remote server: stan@192.168.159.133 /root/...
0
votes
1answer
41 views

Is there a way to attach to a remote process?

I'm currently stuck with remote debugging issue of my application with gdb. I would like to have the ability to attach to a remote process and use IDE's visual debugging (I use Visual Studio Code). ...
0
votes
1answer
128 views

How to Pass Multiple Commands to Remote Device via SSHPass [duplicate]

I'm trying to setup a method in which I can run remote tcpdumps on some of my devices, and save the file to my local machine for analysis (I don't want to save the file on the remote device and then ...
0
votes
1answer
525 views

Kill remote process via ssh

I have a process that I want to kill remotely. I tried ssh remotehost "kill -9 $(ps -aux | grep foo | grep bar | awk '{print $2}')" but this returns the error kill: usage: kill [-s sigspec | -n ...
0
votes
2answers
29 views

how to access a server in a VPN from a home computer via a separate notebook with the vpn connection

For my local work environment I would like to access all my companies server directly from my workstation elsewhere. To make this really fun the only access possible is via the VPN on the company ...
0
votes
0answers
1k views

ssh X11Forwarding Gtk-WARNING **: 22:56:39.694: cannot open display: 10.255.255.202:0

I have an Ubuntu server on the local net I can ssh to an run say gedit. It works just fine. And a remote Red Hat 7 through a VPN connection which fails. I connect with the command: ssh -X -o ...
0
votes
0answers
45 views

Installing “iptables” in the remote machine

I have written a C++ program where I would capture the packets on the interfaces. Based on the packet values, I need to install iptables rules on the remote machine. For installing iptables on remote ...
1
vote
2answers
58 views

menu working, but not with |bash command

below is a script that displays a menu, when I run it like ./menu.sh it works, but when I run it like this: ./menu.sh | bash I get a lot of commands not found. The reason I want to run it with | ...
0
votes
4answers
137 views

Run X program in another user's display

Running Ubuntu 16.04 in host, I have the following setup: a user1, who performed a GUI login in host; a user2, who is a sudoer and is logged in only through a text ssh connection (ssh user2@host). I ...
0
votes
0answers
39 views

Remote mount overwrite local file

Following set up, I mounted a remote file via sshfs and the connection to the server got interrupted. Visual Studio Code must have locally saved the file or/and loaded a previous already locally ...
0
votes
0answers
35 views

System font for X11-forwarded applications

I'm using a headless CentOS machine, and now and then I use ssh/X-forwarding to open graphical applications. However, the font used in those applications is not nice and I would like to change it -- ...
0
votes
1answer
226 views

sudoers - allow user to ssh as another user and run a specific command

I am writing a Bash script to manage various JBoss instances across multiple servers. The script allows users to check the status of each instance as well as stop/start them. The script is situated ...
0
votes
0answers
53 views

Can't open RStudio thru x2go

I have two computers on two different networks, which I will call Server and Client. Server and Client both run Debian 9.5 and have x2go installed. When I'm on Client machine, I use x2go to connect ...
1
vote
1answer
55 views

Can I use rsync to move a list of files in different directories to a remote sever without logging in more than once?

So, I'm trying to write a script to back up some various configuration files with my ssh fileserver, but I'm not sure the best way to go about this. It would be nice if I could just fill a file with ...
1
vote
1answer
39 views

How do you take a video of a program running on a headless machine

I would like to take a video of what would run on the X Server on a remote machine and store that on my local machine. I thought of forwarding the X Session and using a screen capture tool, but ...
3
votes
1answer
935 views

How to set up PulseAudio remote properly and securely?

I saw a forum post about someone who was using PulseAudio remote (client-server setup) and this interested me. PulseAudio has some very advanced features that I hope to use to be able to play music ...
4
votes
2answers
341 views

How to copy and paste data between remote vps'vim and local vim?

Connect remote vps with ssh. ssh user@vps_ip Edit a file in remote vps with vim and write a line some text In normal mode ,press yy ,how to paste some text to my local'vim? And vice versa. 1.GUI ...
1
vote
2answers
158 views

Can you nest remote calls using ssh in a bash script? [duplicate]

I have run into a strange issue that Computer A can see Computer B, Computer B can see Computer C, but Computer A can not see Computer C. I would like to make a bash script that can be run on A that ...
1
vote
2answers
350 views

Activate remote display and run X application remotely

I have a desktop machine running Debian 8.0 that I have ssh access to. I run a graphical application on this machine remotely, so I would just leave my desktop session open, ssh into the machine, and ...
1
vote
0answers
258 views

MobaXTerm, way faster than standard ssh (in terms of latency and input lag) [closed]

I would love to use Linux for both my client and server, but this very weird problem is stopping me, and I'd appreciate helping me with this. So, I posted this problem (more details in the link) a ...
-2
votes
1answer
670 views

Use of expect to run scripts on remote machine

I have automated most of the information required for the completion of this project but the only thing that is lagging is the running of local shell scripts on the remote machine. As we are aware ...
0
votes
1answer
866 views

“error: process ID list syntax error”

I have bash a script that logs in to a remote server, and checks for the number of instances of a desired script script.py running on that server, and subsequently echoes the total memory consumed by ...
3
votes
2answers
57 views

Is it possible to transfer files between 2 PCs connected to a single router?

I have 2 laptops plugged into a ZTE ZXA10-F660 PON (like a 4 port ethernet router but with a fiber optic WAN connection). One laptop is running Linux Mint 19 Cinnamon (enp4s0) and the other is running ...