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.

0
votes
0answers
15 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
24 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
23 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
33 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
41 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
71 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
90 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
31 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
29 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
81 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
167 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
20 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
668 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
42 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
48 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
95 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
35 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
31 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
173 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
39 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
41 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
38 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
698 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
248 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
121 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
221 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
250 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
544 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
682 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
56 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 ...
1
vote
1answer
372 views

Remote reboot for a fedora 27 machine with luks encryption

I run Fedora 27 on a pc, that mainly runs scripts for my work. In the beginning I was using it as my workstation so I chose full disk encryption while installing. But now the encryption serves no use ...
0
votes
0answers
150 views

How to ssh to remote hosts and run commands?

I have a script that reads a text file that has all the nodes listed in there: node1 node2 node3 . . . This is part my script: #!/bin/bash ssh-copy-id myusername@icingamaster while read f; do ...
4
votes
1answer
1k views

Remote installation of pip from python3 without root

I'm trying to install python3 for one of remote hosting over ssh. I don't have root access. Installation was done with: wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz tar xvzf Python-3....
2
votes
4answers
1k views

How can I check whether a remote path is a directory or a file?

I am looking for a short an easy way to check whether a remote path points to a directory (or a symlinked directory) or to a readable file. If it is a directory then I can scp multiple specific files ...
0
votes
2answers
66 views

How to properly copy private keys from remote servers to my localmachine so I can connect using ssh

I have a multiple remote servers at Linode and Siteground with ssh connection, passphrase. I was using Windows and Putty to connect to my remote servers but now I started using Ubuntu 18.04 and I ...
0
votes
0answers
9 views

rcp trims directory names on redhat

I've hit a seemingly undocumented error with rcp, in that it trims the first character from the name of any transferred directories, when the files originate from a remote redhat 4.8.2 machine. ...
3
votes
3answers
260 views

How do I find out when a Linux machine was booted via SCP?

I fetch files via SCP from a machine owned by another group. My only access is SCP, I do not have the ability to SSH into their machine. Occasionally, their system is rebooted which causes problems ...
0
votes
0answers
44 views

How to make sure filesystem is mounted rw and not corrupt

During the last year I have deployed around 20 embedded systems to various locations. The last month I have encountered that I was not able to SSH into two of them. Upon going to the actual devices ...
0
votes
1answer
72 views

Executing remote commands through SSH

igor@IgorReinCloud ~/dbhandler $ ssh igorkorot@192.168.1.3:/dbhandler/dbhandler < git pull bash: git: No such file or directory igor@IgorReinCloud ~/dbhandler $ git pull remote: Counting objects: 4,...
0
votes
1answer
107 views

Script to return serial numbers of network switching equipment

I have been tasked with doing a survey and inventory of a very large network. I specifically need to get the serial numbers of 1000+ Avaya switches and routers. All are accessible via either telnet or ...
0
votes
1answer
113 views

Open localhost in a browser referring to another machine

I currently have one service running on localhost on a Centos machine. I cannot change it. I would like to open Firefox on my local machine in order to open that URL, as the Centos machine does not ...
11
votes
2answers
603 views

Turning encrypted system on remotely

My system is full of very sensitive data, so I need to encrypt as much of it as possible. I have an encrypted Debian installation which asks for a long password every time during boot. Is there a ...
0
votes
1answer
2k views

Using string with whitespace in the subprocess.call function in python

I am trying to use ssh command in the subprocess.call function of Python 2.6.8 on Unix environment to call a remote script, and I need to provide a string parameter (with whitespaces) to the remote ...
1
vote
1answer
1k views

compare checksum of files between two remote servers

On my local box "machineA", I have two folders "/primary" and "/secondary". These two folders have some files in it. Now on the remote server "machineB" I have one folder "/bat/snap/" which contains ...
0
votes
2answers
3k views

scp does not work. Finding the cause

I am trying to copy a file (*.crt) from local to remote server. Unfortunately, I don't have rights to open the sshd_config file on remote server. Someone in our team configured an ssh agent for me; I'...
0
votes
2answers
2k views

How to start sshd automatically [closed]

I'm having an issue with ssh. My idea was to set up Wake on Lan on my pc, which runs Kali Linux Rolling (2008.1), and using ssh to connect to it after it booted. Everything works fine, except for ...
0
votes
3answers
191 views

How do I sync two ubuntu folders which are in different servers configured in aws? [duplicate]

I have set up 2 ubuntu instances in aws. How do I sync /usr/ubuntu in both the machines?
0
votes
3answers
968 views

ssh - execute complex remote command

I want to execute the following shell command on a remote machine: /bin/retail -f -u 'INFORMATION \[main\] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler \[\"ajp-nio-8009\"\]' /...
0
votes
1answer
668 views

Same ssh keys one two different machines behave differently (password prompt)?

Thank you but I think I have not conveyed the problem correctly. Let me describe the problem again. Let us assume the key is called "ssh-rsa AAAAB3Nxyz user@laptop". Now these are the current ...